Audio Processing Framework (APF)  version 0.3.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 Function Documentation

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.

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.


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