Phase Lag Index estimator (Stam et al. 2007); rejects zero-lag volume-conduction mixing. More...
#include <phaselagindex.h>
Public Types | |
| typedef QSharedPointer< PhaseLagIndex > | SPtr |
| typedef QSharedPointer< const PhaseLagIndex > | ConstSPtr |
| Public Types inherited from CONNECTIVITYLIB::AbstractMetric | |
| typedef QSharedPointer< AbstractMetric > | SPtr |
| typedef QSharedPointer< const AbstractMetric > | ConstSPtr |
Public Member Functions | |
| PhaseLagIndex () | |
| Public Member Functions inherited from CONNECTIVITYLIB::AbstractMetric | |
| AbstractMetric () | |
Static Public Member Functions | |
| static Network | calculate (ConnectivitySettings &connectivitySettings) |
Static Protected Member Functions | |
| static void | compute (ConnectivitySettings::IntermediateTrialData &inputData, QVector< QPair< int, Eigen::MatrixXcd > > &vecPairCsdSum, QVector< QPair< int, Eigen::MatrixXd > > &vecPairCsdImagSignSum, QMutex &mutex, int iNRows, int iNFreqs, int iNfft, const QPair< Eigen::MatrixXd, Eigen::VectorXd > &tapers) |
| static void | computePLI (ConnectivitySettings &connectivitySettings, Network &finalNetwork) |
Additional Inherited Members | |
| Static Public Attributes inherited from CONNECTIVITYLIB::AbstractMetric | |
| static bool | m_bStorageModeIsActive = false |
| static int | m_iNumberBinStart = -1 |
| static int | m_iNumberBinAmount = -1 |
Phase Lag Index estimator (Stam et al. 2007); rejects zero-lag volume-conduction mixing.
Computes the Phase Lag Index of Stam, Nolte & Daffertshofer (2007).
For every channel pair the estimator averages sign(Im(S_{xy}(f))) across DPSS-tapered trial spectra and returns the magnitude of that average. Zero-lag mixing (volume conduction, common reference) yields sign = 0 and is rejected; consistently lagged or leading interactions yield magnitudes close to 1. The per-trial accumulation is parallelised over trials via QtConcurrent and reduced under a single QMutex.
Definition at line 94 of file phaselagindex.h.

| typedef QSharedPointer<const PhaseLagIndex> CONNECTIVITYLIB::PhaseLagIndex::ConstSPtr |
Const shared pointer type for PhaseLagIndex.
Definition at line 99 of file phaselagindex.h.
| typedef QSharedPointer<PhaseLagIndex> CONNECTIVITYLIB::PhaseLagIndex::SPtr |
Shared pointer type for PhaseLagIndex.
Definition at line 98 of file phaselagindex.h.
|
explicit |
Constructs a PhaseLagIndex object.
Definition at line 56 of file phaselagindex.cpp.
|
static |
Calculates the PLI between the rows of the data matrix.
| [in] | connectivitySettings | The input data and parameters. |
Definition at line 62 of file phaselagindex.cpp.
|
staticprotected |
Computes the PLI values. This function gets called in parallel.
| [in] | inputData | The input data. |
| [out] |
The sum of all CSD matrices for each trial.
| [out] |
The sum of all imag sign CSD matrices for each trial.
| [in] | mutex | The mutex used to safely access vecPairCsdSum. |
| [in] | iNRows | The number of rows. |
| [in] | iNFreqs | The number of frequenciy bins. |
| [in] | iNfft | The FFT length. |
| [in] | tapers | The taper information. |
Definition at line 164 of file phaselagindex.cpp.
|
staticprotected |
Reduces the PLI computation to a final result.
| [out] | connectivitySettings | The input data. |
| [in] | finalNetwork | The final network. |
Definition at line 286 of file phaselagindex.cpp.