Surface Laplacian / Current Source Density (CSD) transformation. More...
#include <surface_laplacian.h>
Static Public Member Functions | |
| static SurfaceLaplacianResult | compute (const Eigen::MatrixXd &matData, const Eigen::MatrixX3d &matPositions, double dLambda2=1e-5, int iStiffness=4, int iNLegendreTerms=50, double dSphereRadius=-1.0) |
| static Eigen::MatrixXd | computeTransform (const Eigen::MatrixX3d &matPositions, double dLambda2=1e-5, int iStiffness=4, int iNLegendreTerms=50, double dSphereRadius=-1.0) |
Surface Laplacian / Current Source Density (CSD) transformation.
Computes a reference-free spatial Laplacian of EEG data using spherical spline interpolation (Perrin et al. 1989). This improves spatial resolution by acting as a high-pass spatial filter that enhances local sources and attenuates volume-conducted far-field activity.
Definition at line 76 of file surface_laplacian.h.
|
static |
Compute the surface Laplacian (CSD) transformation.
| [in] | matData | EEG data matrix (n_channels × n_times). |
| [in] | matPositions | Electrode positions in 3D (n_channels × 3), in head coordinates. |
| [in] | dLambda2 | Regularization parameter (default 1e-5). |
| [in] | iStiffness | Spline stiffness parameter (default 4). |
| [in] | iNLegendreTerms | Number of Legendre terms to evaluate (default 50). |
| [in] | dSphereRadius | Sphere radius in metres; if <= 0, fitted from positions (default -1). |
Definition at line 218 of file surface_laplacian.cpp.
|
static |
Compute only the CSD transformation matrix (without applying to data).
| [in] | matPositions | Electrode positions in 3D (n_channels × 3). |
| [in] | dLambda2 | Regularization parameter (default 1e-5). |
| [in] | iStiffness | Spline stiffness parameter (default 4). |
| [in] | iNLegendreTerms | Number of Legendre terms (default 50). |
| [in] | dSphereRadius | Sphere radius; if <= 0, fitted from positions. |
Definition at line 141 of file surface_laplacian.cpp.