Real-time averaging.
More...
#include <rtaveraging.h>
|
| | RtAveraging (quint32 numAverages, quint32 iPreStimSamples, quint32 iPostStimSamples, quint32 iBaselineFromSecs, quint32 iBaselineToSecs, quint32 iTriggerIndex, FIFFLIB::FiffInfo::SPtr pFiffInfo, QObject *parent=0) |
| | ~RtAveraging () |
| void | append (const Eigen::MatrixXd &data) |
| void | restart (quint32 numAverages, quint32 iPreStimSamples, quint32 iPostStimSamples, quint32 iBaselineFromSecs, quint32 iBaselineToSecs, quint32 iTriggerIndex, FIFFLIB::FiffInfo::SPtr pFiffInfo) |
| void | stop () |
| void | setAverageNumber (qint32 numAve) |
| void | setPreStim (qint32 samples, qint32 secs) |
| void | setPostStim (qint32 samples, qint32 secs) |
| void | setTriggerChIndx (qint32 idx) |
| void | setArtifactReduction (const QMap< QString, double > &mapThresholds) |
| void | setBaselineActive (bool activate) |
| void | setBaselineFrom (int fromSamp, int fromMSec) |
| void | setBaselineTo (int toSamp, int toMSec) |
| void | reset () |
Real-time averaging.
Real-time averaging
Definition at line 284 of file rtaveraging.h.
◆ ConstSPtr
◆ SPtr
◆ RtAveraging()
| RtAveraging::RtAveraging |
( |
quint32 | numAverages, |
|
|
quint32 | iPreStimSamples, |
|
|
quint32 | iPostStimSamples, |
|
|
quint32 | iBaselineFromSecs, |
|
|
quint32 | iBaselineToSecs, |
|
|
quint32 | iTriggerIndex, |
|
|
FIFFLIB::FiffInfo::SPtr | pFiffInfo, |
|
|
QObject * | parent = 0 ) |
|
explicit |
Creates the real-time averaging object.
- Parameters
-
| [in] | numAverages | Number of evkos to average. |
| [in] | iPreStimSamples | Number of samples averaged before the stimulus. |
| [in] | iPostStimSamples | Number of samples averaged after the stimulus (including the stimulus). |
| [in] | iBaselineFromSecs | Start of baseline area which was/is used for correction in msecs. |
| [in] | iBaselineToSSecs | End of baseline area which was/is used for correction in msecs. |
| [in] | iTriggerIndex | Row in dex of channel which is to be scanned for triggers. |
| [in] | pFiffInfo | Associated Fiff Information. |
| [in] | parent | Parent QObject (optional). |
Definition at line 545 of file rtaveraging.cpp.
◆ ~RtAveraging()
| RtAveraging::~RtAveraging |
( |
| ) |
|
◆ append()
| void RtAveraging::append |
( |
const Eigen::MatrixXd & | data | ) |
|
Slot to receive incoming data.
- Parameters
-
| [in] | data | Data to calculate the average from. |
Definition at line 606 of file rtaveraging.cpp.
◆ averageArtifactReductionChanged
| void RTPROCESSINGLIB::RtAveraging::averageArtifactReductionChanged |
( |
const QMap< QString, double > & | mapThresholds | ) |
|
|
signal |
◆ averageBaselineActiveChanged
| void RTPROCESSINGLIB::RtAveraging::averageBaselineActiveChanged |
( |
bool | activate | ) |
|
|
signal |
◆ averageBaselineFromChanged
| void RTPROCESSINGLIB::RtAveraging::averageBaselineFromChanged |
( |
int | fromSamp, |
|
|
int | fromMSec ) |
|
signal |
◆ averageBaselineToChanged
| void RTPROCESSINGLIB::RtAveraging::averageBaselineToChanged |
( |
int | toSamp, |
|
|
int | toMSec ) |
|
signal |
◆ averageNumberChanged
| void RTPROCESSINGLIB::RtAveraging::averageNumberChanged |
( |
qint32 | numAve | ) |
|
|
signal |
◆ averagePostStimChanged
| void RTPROCESSINGLIB::RtAveraging::averagePostStimChanged |
( |
qint32 | samples, |
|
|
qint32 | secs ) |
|
signal |
◆ averagePreStimChanged
| void RTPROCESSINGLIB::RtAveraging::averagePreStimChanged |
( |
qint32 | samples, |
|
|
qint32 | secs ) |
|
signal |
◆ averageResetRequested
| void RTPROCESSINGLIB::RtAveraging::averageResetRequested |
( |
| ) |
|
|
signal |
◆ averageTriggerChIdxChanged
| void RTPROCESSINGLIB::RtAveraging::averageTriggerChIdxChanged |
( |
qint32 | idx | ) |
|
|
signal |
◆ evokedStim
| void RTPROCESSINGLIB::RtAveraging::evokedStim |
( |
const FIFFLIB::FiffEvokedSet & | evokedStimSet, |
|
|
const QStringList & | lResponsibleTriggerTypes ) |
|
signal |
◆ handleResults()
| void RtAveraging::handleResults |
( |
const FIFFLIB::FiffEvokedSet & | evokedStimSet, |
|
|
const QStringList & | lResponsibleTriggerTypes ) |
|
protected |
◆ operate
| void RTPROCESSINGLIB::RtAveraging::operate |
( |
const Eigen::MatrixXd & | matData | ) |
|
|
signal |
◆ reset()
| void RtAveraging::reset |
( |
| ) |
|
Reset the data processing in the real-time worker
Definition at line 751 of file rtaveraging.cpp.
◆ restart()
| void RtAveraging::restart |
( |
quint32 | numAverages, |
|
|
quint32 | iPreStimSamples, |
|
|
quint32 | iPostStimSamples, |
|
|
quint32 | iBaselineFromSecs, |
|
|
quint32 | iBaselineToSecs, |
|
|
quint32 | iTriggerIndex, |
|
|
FIFFLIB::FiffInfo::SPtr | pFiffInfo ) |
Restarts the thread by interrupting its computation queue, quitting, waiting and then starting it again.
- Parameters
-
| [in] | numAverages | Number of evkos to average. |
| [in] | iPreStimSamples | Number of samples averaged before the stimulus. |
| [in] | iPostStimSamples | Number of samples averaged after the stimulus (including the stimulus). |
| [in] | iBaselineFromSecs | Start of baseline area which was/is used for correction in msecs. |
| [in] | iBaselineToSSecs | End of baseline area which was/is used for correction in msecs. |
| [in] | iTriggerIndex | Row in dex of channel which is to be scanned for triggers. |
| [in] | pFiffInfo | Associated Fiff Information. |
Definition at line 622 of file rtaveraging.cpp.
◆ setArtifactReduction()
| void RtAveraging::setArtifactReduction |
( |
const QMap< QString, double > & | mapThresholds | ) |
|
Sets the artifact reduction
- Parameters
-
| [in] | mapThresholds | The new map including the current thresholds for the channels. |
Definition at line 719 of file rtaveraging.cpp.
◆ setAverageNumber()
| void RtAveraging::setAverageNumber |
( |
qint32 | numAve | ) |
|
Sets the number of averages
- Parameters
-
| [in] | numAve | new number of averages. |
Definition at line 683 of file rtaveraging.cpp.
◆ setBaselineActive()
| void RtAveraging::setBaselineActive |
( |
bool | activate | ) |
|
Sets the baseline correction on or off
- Parameters
-
| [in] | activate | activate baseline correction. |
Definition at line 726 of file rtaveraging.cpp.
◆ setBaselineFrom()
| void RtAveraging::setBaselineFrom |
( |
int | fromSamp, |
|
|
int | fromMSec ) |
Sets the from mSeconds of the baseline area
- Parameters
-
| [in] | fromSamp | from of baseline area in samples. |
| [in] | fromMSec | from of baseline area in mSeconds. |
Definition at line 733 of file rtaveraging.cpp.
◆ setBaselineTo()
| void RtAveraging::setBaselineTo |
( |
int | toSamp, |
|
|
int | toMSec ) |
Sets the to mSeconds of the baseline area
- Parameters
-
| [in] | toSamp | to of baseline area in samples. |
| [in] | toMSec | to of baseline area in mSeconds. |
Definition at line 742 of file rtaveraging.cpp.
◆ setPostStim()
| void RtAveraging::setPostStim |
( |
qint32 | samples, |
|
|
qint32 | secs ) |
Sets the number of post stimulus samples
- Parameters
-
| [in] | samples | new number of post stimulus samples. |
| [in] | secs | new number of pre stimulus seconds. |
Definition at line 701 of file rtaveraging.cpp.
◆ setPreStim()
| void RtAveraging::setPreStim |
( |
qint32 | samples, |
|
|
qint32 | secs ) |
Sets the number of pre stimulus samples
- Parameters
-
| [in] | samples | new number of pre stimulus samples. |
| [in] | secs | new number of pre stimulus seconds. |
Definition at line 690 of file rtaveraging.cpp.
◆ setTriggerChIndx()
| void RtAveraging::setTriggerChIndx |
( |
qint32 | idx | ) |
|
Sets the index of the trigger channel which is to be scanned fo triggers
- Parameters
-
| [in] | idx | trigger channel index. |
Definition at line 712 of file rtaveraging.cpp.
◆ stop()
| void RtAveraging::stop |
( |
| ) |
|
Stops the thread by interrupting its computation queue, quitting and waiting.
Definition at line 674 of file rtaveraging.cpp.
◆ m_workerThread
| QThread RTPROCESSINGLIB::RtAveraging::m_workerThread |
|
protected |
The documentation for this class was generated from the following files: