MNE-CPP
0.1.9
A Framework for Electrophysiology
|
DetectTrigger declarations. More...
Go to the source code of this file.
Functions | |
RTPROCESINGSHARED_EXPORT QList< Eigen::MatrixXi > | RTPROCESSINGLIB::toEventMatrix (QMap< int, QList< QPair< int, double > > > mapTriggers) |
RTPROCESINGSHARED_EXPORT QMap< int, QList< QPair< int, double > > > | RTPROCESSINGLIB::detectTriggerFlanksMax (const Eigen::MatrixXd &data, const QList< int > &lTriggerChannels, int iOffsetIndex, double dThreshold, bool bRemoveOffset, int iBurstLengthSamp=100) |
RTPROCESINGSHARED_EXPORT QList< QPair< int, double > > | RTPROCESSINGLIB::detectTriggerFlanksMax (const Eigen::MatrixXd &data, int iTriggerChannelIdx, int iOffsetIndex, double dThreshold, bool bRemoveOffset, int iBurstLengthSamp=100) |
RTPROCESINGSHARED_EXPORT QMap< int, QList< QPair< int, double > > > | RTPROCESSINGLIB::detectTriggerFlanksGrad (const Eigen::MatrixXd &data, const QList< int > &lTriggerChannels, int iOffsetIndex, double dThreshold, bool bRemoveOffset, const QString &type, int iBurstLengthSamp=100) |
RTPROCESINGSHARED_EXPORT QList< QPair< int, double > > | RTPROCESSINGLIB::detectTriggerFlanksGrad (const Eigen::MatrixXd &data, int iTriggerChannelIdx, int iOffsetIndex, double dThreshold, bool bRemoveOffset, const QString &type, int iBurstLengthSamp=100) |
DetectTrigger declarations.
Copyright (C) 2020, Lorenz Esch. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file detecttrigger.h.
RTPROCESINGSHARED_EXPORT QMap<int,QList<QPair<int,double> > > RTPROCESSINGLIB::detectTriggerFlanksGrad | ( | const Eigen::MatrixXd & | data, |
const QList< int > & | lTriggerChannels, | ||
int | iOffsetIndex, | ||
double | dThreshold, | ||
bool | bRemoveOffset, | ||
const QString & | type, | ||
int | iBurstLengthSamp = 100 |
||
) |
detectTriggerFlanksGrad detects flanks from a given data matrix in row wise order. This function uses a simple gradient to locate the triggers.
[in] | data | the data used to find the trigger flanks. |
[in] | lTriggerChannels | The indeces of the trigger channels. |
[in] | iOffsetIndex | the offset index gets added to the found trigger flank index. |
[in] | iThreshold | the gradient threshold value used to find the trigger flank. |
[in] | bRemoveOffset | remove the first sample as offset. |
[in] | type | detect rising or falling flank. Use "Rising" or "Falling" as input. |
[in] | iBurstLengthMs | The length in samples which is skipped after a trigger was found. |
RTPROCESINGSHARED_EXPORT QList<QPair<int,double> > RTPROCESSINGLIB::detectTriggerFlanksGrad | ( | const Eigen::MatrixXd & | data, |
int | iTriggerChannelIdx, | ||
int | iOffsetIndex, | ||
double | dThreshold, | ||
bool | bRemoveOffset, | ||
const QString & | type, | ||
int | iBurstLengthSamp = 100 |
||
) |
detectTriggerFlanksGrad detects flanks from a given data matrix in row wise order. This function uses a simple gradient to locate the triggers.
[in] | data | the data used to find the trigger flanks. |
[in] | iTriggerChannelIdx | the index of the trigger channel in the matrix. |
[in] | iOffsetIndex | the offset index gets added to the found trigger flank index. |
[in] | iThreshold | the gradient threshold value used to find the trigger flank. |
[in] | bRemoveOffset | remove the first sample as offset. |
[in] | type | detect rising or falling flank. Use "Rising" or "Falling" as input. |
[in] | iBurstLengthMs | The length in samples which is skipped after a trigger was found. |
RTPROCESINGSHARED_EXPORT QMap<int, QList<QPair<int, double> > > RTPROCESSINGLIB::detectTriggerFlanksMax | ( | const Eigen::MatrixXd & | data, |
const QList< int > & | lTriggerChannels, | ||
int | iOffsetIndex, | ||
double | dThreshold, | ||
bool | bRemoveOffset, | ||
int | iBurstLengthSamp = 100 |
||
) |
detectTriggerFlanks detects flanks from a given data matrix in row wise order. This function uses a simple maxCoeff function implemented by eigen to locate the triggers.
[in] | data | the data used to find the trigger flanks. |
[in] | lTriggerChannels | The indeces of the trigger channels. |
[in] | iOffsetIndex | the offset index gets added to the found trigger flank index. |
[in] | dThreshold | the signal threshold value used to find the trigger flank. |
[in] | bRemoveOffset | remove the first sample as offset. |
[in] | iBurstLengthMs | The length in samples which is skipped after a trigger was found. |
RTPROCESINGSHARED_EXPORT QList<QPair<int,double> > RTPROCESSINGLIB::detectTriggerFlanksMax | ( | const Eigen::MatrixXd & | data, |
int | iTriggerChannelIdx, | ||
int | iOffsetIndex, | ||
double | dThreshold, | ||
bool | bRemoveOffset, | ||
int | iBurstLengthSamp = 100 |
||
) |
detectTriggerFlanks detects flanks from a given data matrix in row wise order. This function uses a simple maxCoeff function implemented by eigen to locate the triggers.
[in] | data | the data used to find the trigger flanks. |
[in] | iTriggerChannelIdx | the index of the trigger channel in the matrix. |
[in] | iOffsetIndex | the offset index gets added to the found trigger flank index. |
[in] | dThreshold | the signal threshold value used to find the trigger flank. |
[in] | bRemoveOffset | remove the first sample as offset. |
[in] | iBurstLengthMs | The length in samples which is skipped after a trigger was found. |
QList< MatrixXi > RTPROCESSINGLIB::toEventMatrix | ( | QMap< int, QList< QPair< int, double > > > | mapTriggers | ) |
Transforms QMap with stored information about events per stim channel to a list of event matrices.
[in] | mapTriggers | The QMap to be transformed. |
[in] | A | list of transformed Eigen matrices. |
Definition at line 58 of file detecttrigger.cpp.