v2.0.0
Loading...
Searching...
No Matches
stim_artifact.h
Go to the documentation of this file.
1//=============================================================================================================
16
17#ifndef STIM_ARTIFACT_DSP_H
18#define STIM_ARTIFACT_DSP_H
19
20//=============================================================================================================
21// INCLUDES
22//=============================================================================================================
23
24#include "dsp_global.h"
25
26//=============================================================================================================
27// EIGEN INCLUDES
28//=============================================================================================================
29
30#include <Eigen/Core>
31
32//=============================================================================================================
33// DEFINE NAMESPACE UTILSLIB
34//=============================================================================================================
35
36namespace UTILSLIB {
37
38//=============================================================================================================
47
48//=============================================================================================================
68DSPSHARED_EXPORT void fixStimArtifact(Eigen::MatrixXd& data,
69 const Eigen::MatrixXi& events,
70 double sfreq,
71 int eventId = -1,
72 double tmin = 0.0,
73 double tmax = 0.01,
75
76} // namespace UTILSLIB
77
78#endif // STIM_ARTIFACT_DSP_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).
StimArtifactMode
Mode for stimulus artifact repair.
DSPSHARED_EXPORT void fixStimArtifact(Eigen::MatrixXd &data, const Eigen::MatrixXi &events, double sfreq, int eventId=-1, double tmin=0.0, double tmax=0.01, StimArtifactMode mode=StimArtifactMode::Linear)
Repair stimulus artifacts by interpolating or zeroing data around events.