v2.0.0
Loading...
Searching...
No Matches
rt_detect_trigger.h
Go to the documentation of this file.
1//=============================================================================================================
24
25#ifndef RT_DETECT_TRIGGER_RTPROCESSING_H
26#define RT_DETECT_TRIGGER_RTPROCESSING_H
27
28//=============================================================================================================
29// INCLUDES
30//=============================================================================================================
31
32#include "../dsp_global.h"
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QPair>
39
40//=============================================================================================================
41// EIGEN INCLUDES
42//=============================================================================================================
43
44#include <Eigen/Core>
45
46//=============================================================================================================
47// DEFINE NAMESPACE RTPROCESSINGLIB
48//=============================================================================================================
49
50namespace RTPROCESSINGLIB
51{
52
53//=============================================================================================================
54// RTPROCESSINGLIB FORWARD DECLARATIONS
55//=============================================================================================================
56
57//=========================================================================================================
65DSPSHARED_EXPORT QList<Eigen::MatrixXi> toEventMatrix(QMap<int,QList<QPair<int,double> > > mapTriggers);
66
67//=========================================================================================================
82DSPSHARED_EXPORT QMap<int, QList<QPair<int, double> > > detectTriggerFlanksMax(const Eigen::MatrixXd &data,
83 const QList<int>& lTriggerChannels,
84 int iOffsetIndex,
85 double dThreshold,
86 bool bRemoveOffset,
87 int iBurstLengthSamp = 100);
88
89//=========================================================================================================
102DSPSHARED_EXPORT QList<QPair<int,double> > detectTriggerFlanksMax(const Eigen::MatrixXd &data,
103 int iTriggerChannelIdx,
104 int iOffsetIndex,
105 double dThreshold,
106 bool bRemoveOffset,
107 int iBurstLengthSamp = 100);
108
109//=========================================================================================================
123DSPSHARED_EXPORT QMap<int,QList<QPair<int,double> > > detectTriggerFlanksGrad(const Eigen::MatrixXd &data,
124 const QList<int>& lTriggerChannels,
125 int iOffsetIndex,
126 double dThreshold,
127 bool bRemoveOffset,
128 const QString& type,
129 int iBurstLengthSamp = 100);
130
131//=========================================================================================================
145DSPSHARED_EXPORT QList<QPair<int,double> > detectTriggerFlanksGrad(const Eigen::MatrixXd &data,
146 int iTriggerChannelIdx,
147 int iOffsetIndex,
148 double dThreshold,
149 bool bRemoveOffset,
150 const QString& type,
151 int iBurstLengthSamp = 100);
152
153//=============================================================================================================
154// INLINE DEFINITIONS
155//=============================================================================================================
156
157} // NAMESPACE
158
159#endif // RT_DETECT_TRIGGER_RTPROCESSING_H
Export/import macros and namespace declaration for the DSP library.
#define DSPSHARED_EXPORT
Definition dsp_global.h:50
DSPSHARED_EXPORT QMap< int, QList< QPair< int, double > > > detectTriggerFlanksGrad(const Eigen::MatrixXd &data, const QList< int > &lTriggerChannels, int iOffsetIndex, double dThreshold, bool bRemoveOffset, const QString &type, int iBurstLengthSamp=100)
DSPSHARED_EXPORT QMap< int, QList< QPair< int, double > > > detectTriggerFlanksMax(const Eigen::MatrixXd &data, const QList< int > &lTriggerChannels, int iOffsetIndex, double dThreshold, bool bRemoveOffset, int iBurstLengthSamp=100)
DSPSHARED_EXPORT QList< Eigen::MatrixXi > toEventMatrix(QMap< int, QList< QPair< int, double > > > mapTriggers)