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

Real-time Noise estimation. More...

#include <rtnoise.h>

Public Types

typedef QSharedPointer< RtNoiseSPtr
typedef QSharedPointer< const RtNoiseConstSPtr


void SpecCalculated (Eigen::MatrixXd)

Public Member Functions

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

Public Attributes

QMutex ReadMutex
Eigen::MatrixXd m_matSpecData
bool m_bSendDataToBuffer

Protected Member Functions

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

Protected Attributes

int m_iNumOfBlocks
int m_iBlockSize
int m_iSensors
int m_iBlockIndex
Eigen::MatrixXd m_matCircBuf

Detailed Description

Real-time Noise estimation.

Real-time noise Spectrum estimation

Definition at line 78 of file rtnoise.h.

Inheritance diagram for RTPROCESSINGLIB::RtNoise:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for RtNoise.

Definition at line 84 of file rtnoise.h.

◆ SPtr

typedef QSharedPointer<RtNoise> RTPROCESSINGLIB::RtNoise::SPtr

Shared pointer type for RtNoise.

Definition at line 83 of file rtnoise.h.

Constructor & Destructor Documentation

◆ RtNoise()

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

Creates the real-time covariance estimation object.

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

Definition at line 64 of file rtnoise.cpp.

◆ ~RtNoise()

RtNoise::~RtNoise ( )

Destroys the Real-time noise estimation object.

Definition at line 95 of file rtnoise.cpp.

Member Function Documentation

◆ append()

void RtNoise::append ( const Eigen::MatrixXd &  p_DataSegment)

Slot to receive incoming data.

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

Definition at line 150 of file rtnoise.cpp.

◆ isRunning()

bool RTPROCESSINGLIB::RtNoise::isRunning ( )

Returns true if is running, otherwise false.

true if is running, false otherwise.

Definition at line 190 of file rtnoise.h.

◆ run()

void RtNoise::run ( )

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 188 of file rtnoise.cpp.

◆ SpecCalculated

void RTPROCESSINGLIB::RtNoise::SpecCalculated ( Eigen::MatrixXd  )

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


◆ start()

bool RtNoise::start ( )

Starts the RtNoise by starting the producer's thread.

true if succeeded, false otherwise.

Definition at line 161 of file rtnoise.cpp.

◆ stop()

bool RtNoise::stop ( )

Stops the RtNoise by stopping the producer's thread.

true if succeeded, false otherwise.

Definition at line 175 of file rtnoise.cpp.

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