MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
spectrogram.h
Go to the documentation of this file.
1//=============================================================================================================
34#ifndef SPECTROGRAM_H
35#define SPECTROGRAM_H
36
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
41#include "utils_global.h"
42
43//=============================================================================================================
44// EIGEN INCLUDES
45//=============================================================================================================
46
47#include <Eigen/Core>
48
49//=============================================================================================================
50// DEFINE NAMESPACE UTILSLIB
51//=============================================================================================================
52
53namespace UTILSLIB
54{
55
57 Eigen::VectorXd vecInputData;
58 quint32 iRangeLow;
59 quint32 iRangeHigh;
60 qint32 window_size;
61};
62
64{
65
66public:
67 //=========================================================================================================
76 static Eigen::MatrixXd makeSpectrogram(Eigen::VectorXd signal,
77 qint32 windowSize);
78
79private:
80 //=========================================================================================================
90 static Eigen::VectorXd gaussWindow (qint32 sample_count,
91 qreal scale,
92 quint32 translation);
93
94 //=========================================================================================================
102 static Eigen::MatrixXd compute(const SpectogramInputData& data);
103
104 //=========================================================================================================
111 static void reduce(Eigen::MatrixXd &resultData,
112 const Eigen::MatrixXd &data);
113};
114}//namespace
115
116#endif // SPECTROGRAM_H
117
utils library export/import macros.
#define UTILSSHARED_EXPORT