![]() |
LASP 1.0
Library for Acoustic Signal Processing
|
Real time spectral estimator using Welch method of spectral estimation. More...
#include <lasp_rtaps.h>


Public Member Functions | |
| RtAps (SmgrHandle mgr, const Filter *freqWeightingFilter, const us nfft=2048, const Window::WindowType w=Window::WindowType::Hann, const d overlap_percentage=50., const d time_constant=-1) | |
| Initialize RtAps. | |
| ~RtAps () | |
| ccube | getCurrentValue () const |
| Get the latest estimate of the power spectra. | |
| void | inCallback (const DaqData &d) |
| Implements the work to to when new DaqData arrives. | |
| void | reset (const Daq *) |
Public Member Functions inherited from ThreadedInDataHandler< RtAps > | |
| ThreadedInDataHandler (SmgrHandle mgr) | |
| void | _reset (const Daq *daq) |
| void | _inCallback (const DaqData &data) |
Public Member Functions inherited from ThreadedInDataHandlerBase | |
| ThreadedInDataHandlerBase (SmgrHandle mgr, InCallbackType cb, InResetType reset) | |
| ~ThreadedInDataHandlerBase () | |
| void | startThread () |
| This method should be called from the derived class' constructor, to start the thread and data is incoming. | |
| void | stopThread () |
| This method SHOULD be called from all classes that derive on ThreadedInDataHandler. It is to make sure the inCallback_threaded() function is no longer called when the destructor of the derived class is called. Not calling this function is regarded as a BUG. | |
Real time spectral estimator using Welch method of spectral estimation.
Definition at line 26 of file lasp_rtaps.h.
| RtAps::RtAps | ( | SmgrHandle | mgr, |
| const Filter * | freqWeightingFilter, | ||
| const us | nfft = 2048, |
||
| const Window::WindowType | w = Window::WindowType::Hann, |
||
| const d | overlap_percentage = 50., |
||
| const d | time_constant = -1 |
||
| ) |
Initialize RtAps.
| mgr | StreamMgr singleton reference |
| freqWeightingFilter | Optionally: the frequency weighting filter. Nullptr should be given for Z-weighting. |
For all other arguments, see constructor of AvPowerSpectra
Definition at line 12 of file lasp_rtaps.cpp.
| RtAps::~RtAps | ( | ) |
Definition at line 25 of file lasp_rtaps.cpp.
| ccube RtAps::getCurrentValue | ( | ) | const |
Get the latest estimate of the power spectra.
Definition at line 86 of file lasp_rtaps.cpp.
| void RtAps::inCallback | ( | const DaqData & | d | ) |
Implements the work to to when new DaqData arrives.
| d | DaqData to use for computing/updating spectra |
Definition at line 28 of file lasp_rtaps.cpp.
| void RtAps::reset | ( | const Daq * | daq | ) |
Definition at line 67 of file lasp_rtaps.cpp.