mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
mrs_lib::IirFilter Class Reference

Public Member Functions

 IirFilter (const std::vector< double > &a, const std::vector< double > &b)
 Constructor of new IirFilter object (coefficients are in the canonical form) More...
 
double iterate (const double input)
 
std::tuple< std::vector< double >, std::vector< double > > getCoeffs ()
 
std::vector< double > getBuffer ()
 

Constructor & Destructor Documentation

◆ IirFilter()

mrs_lib::IirFilter::IirFilter ( const std::vector< double > &  a,
const std::vector< double > &  b 
)

Constructor of new IirFilter object (coefficients are in the canonical form)

Parameters
agains in the feedback branch of the IIR filter be advised that the coefficient a[0] is not used and should be set to zero.
bgains in the feedforward branch, using only this coefficients results in FIR filter

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