Source-space evaluation metrics. 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) |
Source-space evaluation metrics.
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 67 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 94 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 58 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 67 of file sts_source_metrics.cpp.