Sliding-window multitaper time-frequency representation. More...
#include <multitaper_tfr.h>
Static Public Member Functions | |
| static MultitaperTfrResult | compute (const Eigen::MatrixXd &matData, double sfreq, int windowSize=256, int stepSize=-1, double halfBandwidth=4.0, int nTapers=-1) |
| static MultitaperTfrResult | computeArray (const Eigen::MatrixXd &matData, double sfreq, const Eigen::RowVectorXd &vecFreqs, double nCycles=7.0, double timeBandwidth=4.0, bool zeroMean=true) |
Sliding-window multitaper time-frequency representation.
Slides a fixed-length analysis window across the data and computes a multitaper PSD at each position, yielding a time-frequency power map per channel.
Definition at line 78 of file multitaper_tfr.h.
|
static |
Compute sliding-window multitaper TFR for every channel of a data matrix.
| [in] | matData | Data matrix (n_channels × n_times). |
| [in] | sfreq | Sampling frequency in Hz. |
| [in] | windowSize | Analysis window length in samples (default 256). |
| [in] | stepSize | Step size in samples; -1 → windowSize / 2. |
| [in] | halfBandwidth | Half-bandwidth parameter (NW); default 4.0. |
| [in] | nTapers | Number of DPSS tapers; -1 → floor(2*halfBandwidth - 1). |
Definition at line 49 of file multitaper_tfr.cpp.
|
static |
Compute multitaper power at every sample with frequency-specific DPSS wavelets, as mne.time_frequency.tfr_array_multitaper(..., output="power") does for one epoch.
| [in] | matData | Data matrix (n_channels × n_times). |
| [in] | sfreq | Sampling frequency in Hz. |
| [in] | vecFreqs | Frequencies of interest in Hz. |
| [in] | nCycles | Number of cycles in each wavelet (default 7). |
| [in] | timeBandwidth | Time-bandwidth product; floor(timeBandwidth - 1) tapers (default 4). |
| [in] | zeroMean | Make each wavelet zero mean (default true). |
Definition at line 139 of file multitaper_tfr.cpp.