Peak localisation error and spatial dispersion metrics for evaluating distributed M/EEG inverse solutions. More...
#include <sts_source_metrics.h>
Static Public Member Functions | |
| static double | peakLocalizationError (const Eigen::Vector3d &truePos, const Eigen::Vector3d &estimatedPos) |
| static double | spatialDispersion (const Eigen::VectorXd &sourceAmplitudes, const Eigen::MatrixXd &sourcePositions, int peakIndex) |
| static int | findPeakIndex (const Eigen::VectorXd &sourceAmplitudes) |
Peak localisation error and spatial dispersion metrics for evaluating distributed M/EEG inverse solutions.
Source-space evaluation metrics for inverse solutions.
Provides peak localization error (PE) and spatial dispersion (SD) as defined in Lin et al. (2006) and used for CMNE evaluation in Dinh et al. (2021).
Definition at line 65 of file sts_source_metrics.h.
|
static |
Find the index of the source with maximum absolute amplitude.
| [in] | sourceAmplitudes | Source amplitudes (n_sources). |
Definition at line 80 of file sts_source_metrics.cpp.
|
static |
Peak localization error (Euclidean distance between true and estimated peak).
| [in] | truePos | True source position (3D). |
| [in] | estimatedPos | Estimated source position (3D). |
Definition at line 44 of file sts_source_metrics.cpp.
|
static |
Spatial dispersion (amplitude-weighted mean distance from peak).
SD = sum_k |a_k| * d(k, peak) / sum_k |a_k|
| [in] | sourceAmplitudes | Source amplitudes (n_sources). |
| [in] | sourcePositions | Source positions (n_sources x 3). |
| [in] | peakIndex | Index of the peak source. |
Definition at line 53 of file sts_source_metrics.cpp.