LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches

Real time spectral estimator using Welch method of spectral estimation. More...

#include <lasp_rtaps.h>

Inheritance diagram for RtAps:
Collaboration diagram for RtAps:

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.
 

Detailed Description

Real time spectral estimator using Welch method of spectral estimation.

Definition at line 26 of file lasp_rtaps.h.

Constructor & Destructor Documentation

◆ RtAps()

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.

Parameters
mgrStreamMgr singleton reference
freqWeightingFilterOptionally: 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::~RtAps ( )

Definition at line 25 of file lasp_rtaps.cpp.

Member Function Documentation

◆ getCurrentValue()

ccube RtAps::getCurrentValue ( ) const

Get the latest estimate of the power spectra.

Returns
If available, the latest estimate. If no estimate available, an empty ccube().

Definition at line 86 of file lasp_rtaps.cpp.

◆ inCallback()

void RtAps::inCallback ( const DaqData d)

Implements the work to to when new DaqData arrives.

Parameters
dDaqData to use for computing/updating spectra
Returns
true if stream should continue.

Definition at line 28 of file lasp_rtaps.cpp.

◆ reset()

void RtAps::reset ( const Daq daq)

Definition at line 67 of file lasp_rtaps.cpp.


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