Audio Processing Framework (APF) version 0.5.0
Public Types | Public Member Functions | Public Attributes | List of all members
apf::BiQuad< T, DenormalPrevention > Class Template Reference

Direct Form II recursive filter of second order. More...

#include <apf/biquad.h>

Inheritance diagram for apf::BiQuad< T, DenormalPrevention >:
Inheritance graph
[legend]

Public Types

using argument_type = T
 
using result_type = T
 

Public Member Functions

BiQuadoperator= (const SosCoefficients< T > &c)
 Assignment operator. More...
 
result_type operator() (argument_type in)
 Process filter on single sample. More...
 
- Public Member Functions inherited from apf::SosCoefficients< T >
 SosCoefficients (T b0_=T(), T b1_=T(), T b2_=T(), T a1_=T(), T a2_=T())
 
SosCoefficientsoperator+= (const SosCoefficients &rhs)
 
SosCoefficients operator+ (const SosCoefficients &rhs) const
 
SosCoefficientsoperator*= (T rhs)
 
SosCoefficients operator* (T rhs) const
 
SosCoefficientsoperator/= (T rhs)
 
SosCoefficients operator/ (T rhs) const
 

Public Attributes

w0
 
w1
 
w2
 
- Public Attributes inherited from apf::SosCoefficients< T >
b0
 
b1
 
b2
 
a1
 
a2
 

Detailed Description

template<typename T, template< typename > class DenormalPrevention = apf::dp::ac>
class apf::BiQuad< T, DenormalPrevention >

Direct Form II recursive filter of second order.

Template Parameters
Tinternal type of states and coefficients
DenormalPreventionmethod of denormal prevention (see apf::dp)
See also
Cascade, bilinear()

Definition at line 145 of file biquad.h.

Member Typedef Documentation

◆ argument_type

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
using apf::BiQuad< T, DenormalPrevention >::argument_type = T

Definition at line 148 of file biquad.h.

◆ result_type

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
using apf::BiQuad< T, DenormalPrevention >::result_type = T

Definition at line 149 of file biquad.h.

Constructor & Destructor Documentation

◆ BiQuad()

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
apf::BiQuad< T, DenormalPrevention >::BiQuad ( )
inline

Definition at line 151 of file biquad.h.

Member Function Documentation

◆ operator=()

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
BiQuad & apf::BiQuad< T, DenormalPrevention >::operator= ( const SosCoefficients< T > &  c)
inline

Assignment operator.

Change coefficients when operator '=' is called with SosCoefficients.

Parameters
cNew set of coefficients
Note
state is unchanged!

Definition at line 157 of file biquad.h.

◆ operator()()

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
result_type apf::BiQuad< T, DenormalPrevention >::operator() ( argument_type  in)
inline

Process filter on single sample.

Parameters
ininput sample
Returns
output sample

Definition at line 166 of file biquad.h.

Member Data Documentation

◆ w0

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
T apf::BiQuad< T, DenormalPrevention >::w0

Definition at line 179 of file biquad.h.

◆ w1

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
T apf::BiQuad< T, DenormalPrevention >::w1

Definition at line 179 of file biquad.h.

◆ w2

template<typename T , template< typename > class DenormalPrevention = apf::dp::ac>
T apf::BiQuad< T, DenormalPrevention >::w2

Definition at line 179 of file biquad.h.


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