|
MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Real-time averaging. More...
#include <rtaveraging.h>
Public Types | |
| typedef QSharedPointer< RtAveraging > | SPtr |
| typedef QSharedPointer< const RtAveraging > | ConstSPtr |
Signals | |
| void | evokedStim (const FIFFLIB::FiffEvokedSet &evokedStimSet, const QStringList &lResponsibleTriggerTypes) |
| void | operate (const Eigen::MatrixXd &matData) |
| void | averageNumberChanged (qint32 numAve) |
| void | averagePreStimChanged (qint32 samples, qint32 secs) |
| void | averagePostStimChanged (qint32 samples, qint32 secs) |
| void | averageTriggerChIdxChanged (qint32 idx) |
| void | averageArtifactReductionChanged (const QMap< QString, double > &mapThresholds) |
| void | averageBaselineActiveChanged (bool activate) |
| void | averageBaselineFromChanged (int fromSamp, int fromMSec) |
| void | averageBaselineToChanged (int toSamp, int toMSec) |
| void | averageResetRequested () |
Public Member Functions | |
| 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 () |
Protected Member Functions | |
| void | handleResults (const FIFFLIB::FiffEvokedSet &evokedStimSet, const QStringList &lResponsibleTriggerTypes) |
Protected Attributes | |
| QThread | m_workerThread |

| typedef QSharedPointer<const RtAveraging> RTPROCESSINGLIB::RtAveraging::ConstSPtr |
Const shared pointer type for RtAveraging.
Definition at line 290 of file rtaveraging.h.
| typedef QSharedPointer<RtAveraging> RTPROCESSINGLIB::RtAveraging::SPtr |
Shared pointer type for RtAveraging.
Definition at line 289 of file rtaveraging.h.
|
explicit |
Creates the real-time averaging object.
| [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 | ( | ) |
Destroys the real-time averaging object.
Definition at line 599 of file rtaveraging.cpp.
| void RtAveraging::append | ( | const Eigen::MatrixXd & | data | ) |
Slot to receive incoming data.
| [in] | data | Data to calculate the average from. |
Definition at line 606 of file rtaveraging.cpp.
|
protected |
Handles the results.
Definition at line 613 of file rtaveraging.cpp.
| void RtAveraging::reset | ( | ) |
Reset the data processing in the real-time worker
Definition at line 751 of file rtaveraging.cpp.
| 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.
| [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.
| void RtAveraging::setArtifactReduction | ( | const QMap< QString, double > & | mapThresholds | ) |
Sets the artifact reduction
| [in] | mapThresholds | The new map including the current thresholds for the channels. |
Definition at line 719 of file rtaveraging.cpp.
| void RtAveraging::setAverageNumber | ( | qint32 | numAve | ) |
Sets the number of averages
| [in] | numAve | new number of averages. |
Definition at line 683 of file rtaveraging.cpp.
| void RtAveraging::setBaselineActive | ( | bool | activate | ) |
Sets the baseline correction on or off
| [in] | activate | activate baseline correction. |
Definition at line 726 of file rtaveraging.cpp.
| void RtAveraging::setBaselineFrom | ( | int | fromSamp, |
| int | fromMSec | ||
| ) |
Sets the from mSeconds of the baseline area
| [in] | fromSamp | from of baseline area in samples. |
| [in] | fromMSec | from of baseline area in mSeconds. |
Definition at line 733 of file rtaveraging.cpp.
| void RtAveraging::setBaselineTo | ( | int | toSamp, |
| int | toMSec | ||
| ) |
Sets the to mSeconds of the baseline area
| [in] | toSamp | to of baseline area in samples. |
| [in] | toMSec | to of baseline area in mSeconds. |
Definition at line 742 of file rtaveraging.cpp.
| void RtAveraging::setPostStim | ( | qint32 | samples, |
| qint32 | secs | ||
| ) |
Sets the number of post stimulus samples
| [in] | samples | new number of post stimulus samples. |
| [in] | secs | new number of pre stimulus seconds. |
Definition at line 701 of file rtaveraging.cpp.
| void RtAveraging::setPreStim | ( | qint32 | samples, |
| qint32 | secs | ||
| ) |
Sets the number of pre stimulus samples
| [in] | samples | new number of pre stimulus samples. |
| [in] | secs | new number of pre stimulus seconds. |
Definition at line 690 of file rtaveraging.cpp.
| void RtAveraging::setTriggerChIndx | ( | qint32 | idx | ) |
Sets the index of the trigger channel which is to be scanned fo triggers
| [in] | idx | trigger channel index. |
Definition at line 712 of file rtaveraging.cpp.
| void RtAveraging::stop | ( | ) |
Stops the thread by interrupting its computation queue, quitting and waiting.
Definition at line 674 of file rtaveraging.cpp.
|
protected |
The worker thread.
Definition at line 440 of file rtaveraging.h.
1.8.17