Plaquette
 
Loading...
Searching...
No Matches
pq::Smoothable Class Referenceabstract

Superclass for components that can be smoothed. More...

#include <PqInputs.h>

Inheritance diagram for pq::Smoothable:
Collaboration diagram for pq::Smoothable:

Public Member Functions

virtual void smooth (float smoothTime=PLAQUETTE_DEFAULT_SMOOTH_WINDOW)
 Apply smoothing to object.
 
virtual void noSmooth ()
 Remove smoothing.
 
virtual void infiniteTimeWindow ()
 Sets time window to infinite.
 
virtual void noTimeWindow ()
 Sets time window to no time window.
 
virtual void timeWindow (float seconds)
 Changes the time window (expressed in seconds).
 
virtual float timeWindow () const
 Returns the time window (expressed in seconds).
 
virtual bool timeWindowIsInfinite () const
 Returns true if time window is infinite.
 
virtual void cutoff (float hz)
 Changes the time window cutoff frequency (expressed in Hz).
 
virtual float cutoff () const
 Returns the time window cutoff frequency (expressed in Hz).
 

Protected Member Functions

virtual float _read ()=0
 
virtual float _sampleRate () const =0
 
virtual void _begin ()
 
virtual void _step ()
 
virtual float _smoothed ()
 

Protected Attributes

MovingAverage _avg
 
unsigned int _nSamples
 
float _timeWindow
 

Detailed Description

Superclass for components that can be smoothed.


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