arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
IIR< T > Class Template Reference

Infinite Impulse Response (IIR) filter. Uses both feedforward (b[]) and feedback (a[]) coefficients. The a[0] coefficient is used to normalize all other coefficients. For integer types, an optional scaling factor is applied to preserve precision. More...

#include <Filter.h>

Inheritance diagram for IIR< T >:
Filter< T >

Public Member Functions

template<size_t B, size_t A>
 IIR (const T(&b)[B], const T(&_a)[A], T factor=1.0)
 
T process (T value) override
 Processes the input value and returns the filtered output value.
 
void reset () override
 

Detailed Description

template<typename T>
class audio_tools::IIR< T >

Infinite Impulse Response (IIR) filter. Uses both feedforward (b[]) and feedback (a[]) coefficients. The a[0] coefficient is used to normalize all other coefficients. For integer types, an optional scaling factor is applied to preserve precision.

Author
Pieter P tttapa / pschatzmann
Template Parameters
Tsample type (float, double, or integer types with a scaling factor)

Constructor & Destructor Documentation

◆ IIR()

template<typename T >
template<size_t B, size_t A>
IIR ( const T(&)  b[B],
const T(&)  _a[A],
T  factor = 1.0 
)
inline

Member Function Documentation

◆ process()

template<typename T >
T process ( T  in)
inlineoverridevirtual

Processes the input value and returns the filtered output value.

Implements Filter< T >.

◆ reset()

template<typename T >
void reset ( )
inlineoverridevirtual

Clears the internal state (delay lines) without changing the coefficients. Call after reconfiguring filter parameters via begin() to avoid transients from stale state.

Reimplemented from Filter< T >.


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