Adjacency matrices from channel positions or source spaces. More...
#include <sts_adjacency.h>
Static Public Member Functions | |
| static Eigen::SparseMatrix< int > | fromChannelPositions (const FIFFLIB::FiffInfo &info, const QStringList &picks=QStringList()) |
| static Eigen::SparseMatrix< int > | fromSourceSpace (const Eigen::MatrixX3i &tris, int nVertices) |
| static Eigen::SparseMatrix< int > | fromSourceSpaceTemporal (const Eigen::MatrixX3i &tris, int nVertices, int nTimes) |
Adjacency matrices from channel positions or source spaces.
Adjacency matrix construction for spatial clustering.
Definition at line 76 of file sts_adjacency.h.
|
static |
Build a spatial adjacency matrix from channel positions in FiffInfo. Uses a distance threshold of 3x the median nearest-neighbor distance.
| [in] | info | FiffInfo with channel positions. |
| [in] | picks | Optional list of channel names to include. If empty, all channels are used. |
Definition at line 59 of file sts_adjacency.cpp.
|
static |
Build a spatial adjacency matrix from a triangulated source space.
| [in] | tris | Triangle definitions (nTris x 3, vertex indices). |
| [in] | nVertices | Total number of vertices. |
Definition at line 133 of file sts_adjacency.cpp.
|
static |
Build a spatio-temporal adjacency matrix from a triangulated source space.
Constructs a (nVertices*nTimes) x (nVertices*nTimes) adjacency matrix where spatial neighbors come from the triangle mesh and temporal neighbors connect each vertex to itself at t-1 and t+1. The linear index is vertex * nTimes + time.
| [in] | tris | Triangle definitions (nTris x 3, vertex indices). |
| [in] | nVertices | Total number of vertices. |
| [in] | nTimes | Number of time points. |
Definition at line 158 of file sts_adjacency.cpp.