MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RTPROCESSINGLIB::RtAveraging Class Reference

Real-time averaging. More...

#include <rtaveraging.h>

Public Types

typedef QSharedPointer< RtAveragingSPtr
 
typedef QSharedPointer< const RtAveragingConstSPtr
 

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
 

Detailed Description

Real-time averaging.

Real-time averaging

Definition at line 284 of file rtaveraging.h.

Inheritance diagram for RTPROCESSINGLIB::RtAveraging:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for RtAveraging.

Definition at line 290 of file rtaveraging.h.

◆ SPtr

Shared pointer type for RtAveraging.

Definition at line 289 of file rtaveraging.h.

Constructor & Destructor Documentation

◆ 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]numAveragesNumber of evkos to average.
[in]iPreStimSamplesNumber of samples averaged before the stimulus.
[in]iPostStimSamplesNumber of samples averaged after the stimulus (including the stimulus).
[in]iBaselineFromSecsStart of baseline area which was/is used for correction in msecs.
[in]iBaselineToSSecsEnd of baseline area which was/is used for correction in msecs.
[in]iTriggerIndexRow in dex of channel which is to be scanned for triggers.
[in]pFiffInfoAssociated Fiff Information.
[in]parentParent QObject (optional).

Definition at line 545 of file rtaveraging.cpp.

◆ ~RtAveraging()

RtAveraging::~RtAveraging ( )

Destroys the real-time averaging object.

Definition at line 599 of file rtaveraging.cpp.

Member Function Documentation

◆ append()

void RtAveraging::append ( const Eigen::MatrixXd &  data)

Slot to receive incoming data.

Parameters
[in]dataData to calculate the average from.

Definition at line 606 of file rtaveraging.cpp.

◆ handleResults()

void RtAveraging::handleResults ( const FIFFLIB::FiffEvokedSet evokedStimSet,
const QStringList &  lResponsibleTriggerTypes 
)
protected

Handles the results.

Definition at line 613 of file rtaveraging.cpp.

◆ 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]numAveragesNumber of evkos to average.
[in]iPreStimSamplesNumber of samples averaged before the stimulus.
[in]iPostStimSamplesNumber of samples averaged after the stimulus (including the stimulus).
[in]iBaselineFromSecsStart of baseline area which was/is used for correction in msecs.
[in]iBaselineToSSecsEnd of baseline area which was/is used for correction in msecs.
[in]iTriggerIndexRow in dex of channel which is to be scanned for triggers.
[in]pFiffInfoAssociated 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]mapThresholdsThe 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]numAvenew 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]activateactivate 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]fromSampfrom of baseline area in samples.
[in]fromMSecfrom 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]toSampto of baseline area in samples.
[in]toMSecto 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]samplesnew number of post stimulus samples.
[in]secsnew 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]samplesnew number of pre stimulus samples.
[in]secsnew 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]idxtrigger 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.

Member Data Documentation

◆ m_workerThread

QThread RTPROCESSINGLIB::RtAveraging::m_workerThread
protected

The worker thread.

Definition at line 440 of file rtaveraging.h.


The documentation for this class was generated from the following files: