v2.0.0
Loading...
Searching...
No Matches
multitaper_tfr.h
Go to the documentation of this file.
1//=============================================================================================================
27
28#ifndef MULTITAPER_TFR_H
29#define MULTITAPER_TFR_H
30
31//=============================================================================================================
32// INCLUDES
33//=============================================================================================================
34
35#include "dsp_global.h"
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41#include <Eigen/Core>
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <QVector>
48
49//=============================================================================================================
50// DEFINE NAMESPACE UTILSLIB
51//=============================================================================================================
52
53namespace UTILSLIB
54{
55
56//=============================================================================================================
61{
62 QVector<Eigen::MatrixXd> tfrData;
63 Eigen::RowVectorXd vecFreqs;
64 Eigen::RowVectorXd vecTimes;
65};
66
67//=============================================================================================================
81{
82public:
83 //=========================================================================================================
95 static MultitaperTfrResult compute(const Eigen::MatrixXd& matData,
96 double sfreq,
97 int windowSize = 256,
98 int stepSize = -1,
99 double halfBandwidth = 4.0,
100 int nTapers = -1);
101};
102
103} // namespace UTILSLIB
104
105#endif // MULTITAPER_TFR_H
Export/import macros and namespace declaration for the DSP library.
#define DSPSHARED_EXPORT
Definition dsp_global.h:50
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Result of a multitaper TFR computation.
QVector< Eigen::MatrixXd > tfrData
One matrix per channel, each: n_freqs × n_times.
Eigen::RowVectorXd vecTimes
Time axis in seconds (window centres).
Eigen::RowVectorXd vecFreqs
Frequency axis in Hz.
Sliding-window multitaper time-frequency representation.
static MultitaperTfrResult compute(const Eigen::MatrixXd &matData, double sfreq, int windowSize=256, int stepSize=-1, double halfBandwidth=4.0, int nTapers=-1)