MNE-CPP
0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
src
libraries
utils
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
53
namespace
UTILSLIB
54
{
55
56
struct
SpectogramInputData
{
57
Eigen::VectorXd vecInputData;
58
quint32 iRangeLow;
59
quint32 iRangeHigh;
60
qint32 window_size;
61
};
62
63
class
UTILSSHARED_EXPORT
Spectrogram
64
{
65
66
public
:
67
//=========================================================================================================
76
static
Eigen::MatrixXd makeSpectrogram(Eigen::VectorXd signal,
77
qint32 windowSize);
78
79
private
:
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_global.h
utils library export/import macros.
UTILSSHARED_EXPORT
#define UTILSSHARED_EXPORT
Definition
utils_global.h:58
UTILSLIB::SpectogramInputData
Definition
spectrogram.h:56
UTILSLIB::Spectrogram
Definition
spectrogram.h:64
Generated on Sat Feb 14 2026 16:30:24 for MNE-CPP by
1.9.8