MNE-CPP  beta 1.0
Public Types | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
RTINVLIB::RtNoise Class Reference

Real-time Noise estimation. More...

#include <rtnoise.h>

Inheritance diagram for RTINVLIB::RtNoise:

Public Types

typedef QSharedPointer< RtNoiseSPtr
 
typedef QSharedPointer< const RtNoiseConstSPtr
 

Signals

void SpecCalculated (Eigen::MatrixXd)
 

Public Member Functions

 RtNoise (qint32 p_iMaxSamples, FiffInfo::SPtr p_pFiffInfo, qint32 p_dataLen, QObject *parent=0)
 
 ~RtNoise ()
 
void append (const MatrixXd &p_DataSegment)
 
bool isRunning ()
 
virtual bool start ()
 
virtual bool stop ()
 

Public Attributes

MatrixXd SpecData
 
QMutex ReadMutex
 
bool SendDataToBuffer
 

Protected Member Functions

virtual void run ()
 
QVector< float > hanning (int N, short itype)
 

Protected Attributes

int NumOfBlocks
 
int BlockSize
 
int Sensors
 
int BlockIndex
 
MatrixXd CircBuf
 

Detailed Description

Real-time Noise estimation.

Real-time noise Spectrum estimation

Definition at line 108 of file rtnoise.h.

Member Typedef Documentation

typedef QSharedPointer<const RtNoise> RTINVLIB::RtNoise::ConstSPtr

Const shared pointer type for RtNoise.

Definition at line 113 of file rtnoise.h.

typedef QSharedPointer<RtNoise> RTINVLIB::RtNoise::SPtr

Shared pointer type for RtNoise.

Definition at line 112 of file rtnoise.h.

Constructor & Destructor Documentation

RtNoise::RtNoise ( qint32  p_iMaxSamples,
FiffInfo::SPtr  p_pFiffInfo,
qint32  p_dataLen,
QObject *  parent = 0 
)
explicit

Creates the real-time covariance estimation object.

Parameters
[in]p_iMaxSamplesNumber of samples to use for each data chunk
[in]p_pFiffInfoAssociated Fiff Information
[in]parentParent QObject (optional)

Definition at line 72 of file rtnoise.cpp.

RtNoise::~RtNoise ( )

Destroys the Real-time noise estimation object.

Definition at line 98 of file rtnoise.cpp.

Member Function Documentation

void RtNoise::append ( const MatrixXd &  p_DataSegment)

Slot to receive incoming data.

Parameters
[in]p_DataSegmentData to estimate the spectrum from -> ToDo Replace this by shared data pointer

Definition at line 153 of file rtnoise.cpp.

bool RTINVLIB::RtNoise::isRunning ( )
inline

Returns true if is running, otherwise false.

Returns
true if is running, false otherwise

Definition at line 225 of file rtnoise.h.

void RtNoise::run ( )
protectedvirtual

The starting point for the thread. After calling start(), the newly created thread calls this function. Returning from this method will end the execution of the thread. Pure virtual method inherited by QThread.

Definition at line 196 of file rtnoise.cpp.

void RTINVLIB::RtNoise::SpecCalculated ( Eigen::MatrixXd  )
signal

Signal which is emitted when a new data Matrix is estimated.

Parameters
[out]
bool RtNoise::start ( )
virtual

Starts the RtNoise by starting the producer's thread.

Returns
true if succeeded, false otherwise

Definition at line 165 of file rtnoise.cpp.

bool RtNoise::stop ( )
virtual

Stops the RtNoise by stopping the producer's thread.

Returns
true if succeeded, false otherwise

Definition at line 180 of file rtnoise.cpp.


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