v2.0.0
Loading...
Searching...
No Matches
multitaper_psd.h
Go to the documentation of this file.
1//=============================================================================================================
28
29#ifndef MULTITAPER_PSD_H
30#define MULTITAPER_PSD_H
31
32//=============================================================================================================
33// INCLUDES
34//=============================================================================================================
35
36#include "dsp_global.h"
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42#include <Eigen/Core>
43
44//=============================================================================================================
45// DEFINE NAMESPACE UTILSLIB
46//=============================================================================================================
47
48namespace UTILSLIB
49{
50
51//=============================================================================================================
56{
57 Eigen::MatrixXd matPsd;
58 Eigen::RowVectorXd vecFreqs;
59};
60
61//=============================================================================================================
78{
79public:
80 //=========================================================================================================
91 static MultitaperPsdResult compute(const Eigen::MatrixXd& matData,
92 double sfreq,
93 double halfBandwidth = 4.0,
94 int nTapers = -1,
95 int nFft = -1);
96};
97
98} // namespace UTILSLIB
99
100#endif // MULTITAPER_PSD_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 PSD computation.
Eigen::RowVectorXd vecFreqs
Frequency axis in Hz, length nFft/2+1.
Eigen::MatrixXd matPsd
n_channels × n_freqs; one-sided PSD in unit²/Hz
Multitaper power spectral density estimator using DPSS (Slepian) tapers.
static MultitaperPsdResult compute(const Eigen::MatrixXd &matData, double sfreq, double halfBandwidth=4.0, int nTapers=-1, int nFft=-1)