v2.0.0
Loading...
Searching...
No Matches
stim_artifact.h
Go to the documentation of this file.
1//=============================================================================================================
18
19#ifndef STIM_ARTIFACT_DSP_H
20#define STIM_ARTIFACT_DSP_H
21
22//=============================================================================================================
23// INCLUDES
24//=============================================================================================================
25
26#include "dsp_global.h"
27
28//=============================================================================================================
29// EIGEN INCLUDES
30//=============================================================================================================
31
32#include <Eigen/Core>
33
34//=============================================================================================================
35// DEFINE NAMESPACE UTILSLIB
36//=============================================================================================================
37
38namespace UTILSLIB
39{
40
41//=============================================================================================================
50
51//=============================================================================================================
71DSPSHARED_EXPORT void fixStimArtifact(Eigen::MatrixXd& data,
72 const Eigen::MatrixXi& events,
73 double sfreq,
74 int eventId = -1,
75 double tmin = 0.0,
76 double tmax = 0.01,
78
79} // namespace UTILSLIB
80
81#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.