HARDT - The Ham Radio DSP Toolkit
hnotchbiquad.h
1 #ifndef __HNOTCHBIQUAD_H
2 #define __HNOTCHBIQUAD_H
3 
14 template <class T>
15 class HNotchBiQuad : public HBiQuad<T>
16 {
17  public:
18 
20  HNotchBiQuad(float fCutOff, float rate, float quality, float gain):
21  HBiQuad<T>(fCutOff, rate, quality, gain)
22  {}
23 
25  void Calculate(float omegaC, float omegaS, float alpha, float A, float beta, float *a0, float* a1, float* a2, float* b0, float* b1, float* b2)
26  {
27  *a0 = 1 + alpha;
28  *a1 = -2 * omegaC;
29  *a2 = 1 - alpha;
30  *b0 = 1;
31  *b1 = -2 * omegaC;
32  *b2 = 1;
33  }
34 
36  float* Calculate()
37  {
38  return HBiQuad<T>::Calculate();
39  }
40 };
41 
42 #endif
HNotchBiQuad::Calculate
float * Calculate()
Definition: hnotchbiquad.h:36
HBiQuad::Calculate
float * Calculate()
Definition: hbiquad.cpp:54
HNotchBiQuad::HNotchBiQuad
HNotchBiQuad(float fCutOff, float rate, float quality, float gain)
Definition: hnotchbiquad.h:20
HNotchBiQuad::Calculate
void Calculate(float omegaC, float omegaS, float alpha, float A, float beta, float *a0, float *a1, float *a2, float *b0, float *b1, float *b2)
Definition: hnotchbiquad.h:25
HNotchBiQuad
Definition: hnotchbiquad.h:15
HBiQuad
Definition: hbiquad.h:10