v2.0.0
Loading...
Searching...
No Matches
multitaper_psd.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef MULTITAPER_PSD_H
36#define MULTITAPER_PSD_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// DEFINE NAMESPACE UTILSLIB
52//=============================================================================================================
53
54namespace UTILSLIB
55{
56
57//=============================================================================================================
62{
63 Eigen::MatrixXd matPsd;
64 Eigen::RowVectorXd vecFreqs;
65};
66
67//=============================================================================================================
84{
85public:
86 //=========================================================================================================
97 static MultitaperPsdResult compute(const Eigen::MatrixXd& matData,
98 double sfreq,
99 double halfBandwidth = 4.0,
100 int nTapers = -1,
101 int nFft = -1);
102};
103
104} // namespace UTILSLIB
105
106#endif // MULTITAPER_PSD_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 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)