HARDT - The Ham Radio DSP Toolkit
Public Member Functions | List of all members
HLowpassBiQuad< T > Class Template Reference

#include <hlowpassbiquad.h>

Inheritance diagram for HLowpassBiQuad< T >:
Inheritance graph
[legend]
Collaboration diagram for HLowpassBiQuad< T >:
Collaboration graph
[legend]

Public Member Functions

 HLowpassBiQuad (float fCutOff, float rate, float quality, float gain)
 
void Calculate (float omegaC, float omegaS, float alpha, float A, float beta, float *a0, float *a1, float *a2, float *b0, float *b1, float *b2)
 
float * Calculate ()
 
- Public Member Functions inherited from HBiQuad< T >
float * Calculate ()
 

Additional Inherited Members

- Protected Member Functions inherited from HBiQuad< T >
 HBiQuad (float fCutOff, float rate, float quality, float gain)
 

Detailed Description

template<class T>
class HLowpassBiQuad< T >

Calculate the normalized coefficients for a generic lowpass biquad filter.

Given the required cutoff frequency, the sampling frequency and the required quality and passband gain, calculates the coefficients of a 2. order (biquad) IIR filter.

This is not a filter - use this type as the generic parameter BIQUAD when creating a HBiQuadFilter.

Constructor & Destructor Documentation

◆ HLowpassBiQuad()

template<class T >
HLowpassBiQuad< T >::HLowpassBiQuad ( float  fCutOff,
float  rate,
float  quality,
float  gain 
)
inline

Construct a new lowpass biquad

Member Function Documentation

◆ Calculate() [1/2]

template<class T >
float* HLowpassBiQuad< T >::Calculate ( )
inline

Calculate and return the normalized filter coefficients

◆ Calculate() [2/2]

template<class T >
void HLowpassBiQuad< T >::Calculate ( float  omegaC,
float  omegaS,
float  alpha,
float  A,
float  beta,
float *  a0,
float *  a1,
float *  a2,
float *  b0,
float *  b1,
float *  b2 
)
inlinevirtual

Calculate filter coefficients

Implements HBiQuad< T >.


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