v2.0.0
Loading...
Searching...
No Matches
multitaper_tfr.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef MULTITAPER_TFR_H
36#define MULTITAPER_TFR_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "dsp_global.h"
43
44//=============================================================================================================
45// EIGEN INCLUDES
46//=============================================================================================================
47
48#include <Eigen/Core>
49
50//=============================================================================================================
51// QT INCLUDES
52//=============================================================================================================
53
54#include <QVector>
55
56//=============================================================================================================
57// DEFINE NAMESPACE UTILSLIB
58//=============================================================================================================
59
60namespace UTILSLIB
61{
62
63//=============================================================================================================
68{
69 QVector<Eigen::MatrixXd> tfrData;
70 Eigen::RowVectorXd vecFreqs;
71 Eigen::RowVectorXd vecTimes;
72};
73
74//=============================================================================================================
88{
89public:
90 //=========================================================================================================
102 static MultitaperTfrResult compute(const Eigen::MatrixXd& matData,
103 double sfreq,
104 int windowSize = 256,
105 int stepSize = -1,
106 double halfBandwidth = 4.0,
107 int nTapers = -1);
108};
109
110} // namespace UTILSLIB
111
112#endif // MULTITAPER_TFR_H
dsp library export/import macros.
#define DSPSHARED_EXPORT
Definition dsp_global.h:56
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)