NEST-Compatible Spatial Networks#
Spatially-structured network primitives compatible with the
NEST simulator nest.spatial API.
These build layers of nodes embedded in 2-D or 3-D space, define
distance-dependent connection kernels and masks, and provide tools to inspect
and visualize the resulting connectivity.
Layers & Positions#
Construct populations whose nodes carry spatial coordinates.
A set of node positions in 2-D or 3-D space. |
|
Build a regular cell-centered lattice (NEST |
|
Build a free-position layer (NEST |
|
Exposes |
|
Exposes |
|
Exposes |
Distance & Displacement#
Compute spatial relationships between source and target nodes.
Pairwise displacement |
|
Pairwise Euclidean distance. |
|
Pairwise Euclidean distance between two layers (NEST |
Connection Kernels#
Distance-dependent connection-probability profiles.
Gaussian distance-dependent connection probability. |
|
Exponential distance-dependent connection probability. |
|
Gamma distance-dependent connection probability. |
|
Rectified-Gabor connection probability on the (x, y) displacements (NEST |
|
Bivariate-Gaussian connection probability on the (x, y) displacements (NEST |
Masks#
Spatial regions that restrict the set of candidate targets.
Circular mask (2-D): target within |
|
Spherical mask (3-D): target within |
|
Box mask (2-D/3-D): target displacement within |
|
Rectangular mask (2-D): target displacement within |
|
Doughnut (annulus) mask (2-D): |
|
Elliptical mask (2-D): displacement inside a rotated ellipse (NEST |
|
Ellipsoidal mask (3-D): displacement inside a rotated ellipsoid (NEST |
Spatial Connection Rules#
Distance-dependent pairwise-Bernoulli connectivity.
Spatially-resolved pairwise-Bernoulli rule: |
|
Distance-dependent pairwise-Bernoulli connection rule (NEST spatial |
Node Selection & Introspection#
Query nodes by position or mask and dump the resulting layer connectivity.
Local index of the node nearest the layer centroid (NEST |
|
Local index of the node nearest each query location (NEST |
|
Local indices of the nodes lying inside |
|
Realized target indices of each source node (NEST |
|
Coordinates of each source node's realized targets (NEST |
|
Write each node's local index + coordinates to |
|
Write each realized edge's endpoints, weight, delay and displacement (NEST |
Visualization#
Plot layers, connection targets/sources, and probability kernels.
Scatter a layer's node positions (NEST |
|
Highlight one source node's realized targets (NEST |
|
Highlight one target node's realized sources (NEST |
|
Heatmap of a connection kernel |