PosturePerfection
Public Member Functions
IIR::IIR2ndOrderFilter Class Reference

Second-order IIR filter stage, for use with the IIRFilter More...

#include <iir.h>

Public Member Functions

 IIR2ndOrderFilter (std::vector< float > coefficients)
 Construct a new IIR2ndOrderFilter object. More...
 
float run (float x)
 Apply the filter to the next data sample, x More...
 

Detailed Description

Second-order IIR filter stage, for use with the IIRFilter

Constructor & Destructor Documentation

◆ IIR2ndOrderFilter()

IIR::IIR2ndOrderFilter::IIR2ndOrderFilter ( std::vector< float >  coefficients)
explicit

Construct a new IIR2ndOrderFilter object.

Parameters
coefficientsList of float coefficients for use in the IIR filter stage

Member Function Documentation

◆ run()

float IIR::IIR2ndOrderFilter::run ( float  x)

Apply the filter to the next data sample, x

Every call to this method constitutes a time step in the IIR filter

Parameters
xThe next data sample
Returns
float Filtered data sample

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