Controller that manages RtNoiseWorker for real-time noise spectrum estimation. More...
#include <rt_noise.h>
Public Types | |
| typedef QSharedPointer< RtNoise > | SPtr |
| typedef QSharedPointer< const RtNoise > | ConstSPtr |
Signals | |
| void | SpecCalculated (const Eigen::MatrixXd &matSpecData) |
| void | operate (const Eigen::MatrixXd &matData) |
Public Member Functions | |
| RtNoise (qint32 iFftLength, FIFFLIB::FiffInfo::SPtr pFiffInfo, qint32 iDataLength, QObject *parent=nullptr) | |
| ~RtNoise () | |
| void | append (const Eigen::MatrixXd &matData) |
| bool | isRunning () const |
| bool | start () |
| bool | stop () |
| bool | wait (unsigned long time=ULONG_MAX) |
Controller that manages RtNoiseWorker for real-time noise spectrum estimation.
Definition at line 125 of file rt_noise.h.

| typedef QSharedPointer<const RtNoise> RTPROCESSINGLIB::RtNoise::ConstSPtr |
Const shared pointer type for RtNoise.
Definition at line 131 of file rt_noise.h.
| typedef QSharedPointer<RtNoise> RTPROCESSINGLIB::RtNoise::SPtr |
Shared pointer type for RtNoise.
Definition at line 130 of file rt_noise.h.
|
explicit |
Creates the real-time noise estimation object.
| [in] | iFftLength | Number of samples per FFT window. |
| [in] | pFiffInfo | Associated Fiff Information. |
| [in] | iDataLength | Number of blocks to accumulate before computing. |
| [in] | parent | Parent QObject (optional). |
Definition at line 198 of file rt_noise.cpp.
| RtNoise::~RtNoise | ( | ) |
Destroys the real-time noise estimation object.
Definition at line 219 of file rt_noise.cpp.
| void RtNoise::append | ( | const Eigen::MatrixXd & | matData | ) |
Submit incoming data for noise estimation.
| [in] | matData | Data block (channels x samples). |
Definition at line 228 of file rt_noise.cpp.
| bool RtNoise::isRunning | ( | ) | const |
Returns whether the worker thread is running.
Definition at line 235 of file rt_noise.cpp.
|
signal |
Internal signal to forward data to the worker thread.
|
signal |
Emitted when a new spectrum is available. Forwarded from the worker.
| bool RtNoise::start | ( | ) |
| bool RtNoise::stop | ( | ) |
| bool RtNoise::wait | ( | unsigned long | time = ULONG_MAX | ) |
Blocks until the worker thread has finished, or until the timeout (ms) expires.
Definition at line 265 of file rt_noise.cpp.