#include <ChebyshevII.h>
|
void | setup (double sampleRate, double centerFrequency, double widthFrequency, double stopBandDb) |
|
void | setup (int reqOrder, double sampleRate, double centerFrequency, double widthFrequency, double stopBandDb) |
|
void | setupN (double centerFrequency, double widthFrequency, double stopBandDb) |
|
void | setupN (int reqOrder, double centerFrequency, double widthFrequency, double stopBandDb) |
|
void | reset () |
|
void | setup (const double(&sosCoefficients)[MaxStages][6]) |
|
template<typename Sample > |
Sample | filter (const Sample in) |
|
const Cascade::Storage | getCascadeStorage () |
|
template<int FilterOrder = 4, class StateType = DirectFormII>
struct Iir::ChebyshevII::BandStop< FilterOrder, StateType >
ChebyshevII bandstop filter.
- Parameters
-
FilterOrder | Reserves memory for a filter of the order FilterOrder |
StateType | The filter topology: DirectFormI, DirectFormII, ... |
◆ setup() [1/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandStop< FilterOrder, StateType >::setup |
( |
double |
sampleRate, |
|
|
double |
centerFrequency, |
|
|
double |
widthFrequency, |
|
|
double |
stopBandDb |
|
) |
| |
|
inline |
Calculates the coefficients of the filter
- Parameters
-
sampleRate | Sampling rate |
centerFrequency | Center frequency of the bandstop |
widthFrequency | Width of the bandstop |
stopBandDb | Permitted ripples in dB in the stopband |
◆ setup() [2/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandStop< FilterOrder, StateType >::setup |
( |
int |
reqOrder, |
|
|
double |
sampleRate, |
|
|
double |
centerFrequency, |
|
|
double |
widthFrequency, |
|
|
double |
stopBandDb |
|
) |
| |
|
inline |
Calculates the coefficients of the filter
- Parameters
-
reqOrder | Requested order which can be less than the instantiated one |
sampleRate | Sampling rate |
centerFrequency | Center frequency of the bandstop |
widthFrequency | Width of the bandstop |
stopBandDb | Permitted ripples in dB in the stopband |
◆ setupN() [1/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandStop< FilterOrder, StateType >::setupN |
( |
double |
centerFrequency, |
|
|
double |
widthFrequency, |
|
|
double |
stopBandDb |
|
) |
| |
|
inline |
Calculates the coefficients of the filter
- Parameters
-
centerFrequency | Normalised centre frequency (0..1/2) of the bandstop |
widthFrequency | Width of the bandstop |
stopBandDb | Permitted ripples in dB in the stopband |
◆ setupN() [2/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandStop< FilterOrder, StateType >::setupN |
( |
int |
reqOrder, |
|
|
double |
centerFrequency, |
|
|
double |
widthFrequency, |
|
|
double |
stopBandDb |
|
) |
| |
|
inline |
Calculates the coefficients of the filter
- Parameters
-
reqOrder | Requested order which can be less than the instantiated one |
centerFrequency | Normalised centre frequency (0..1/2) of the bandstop |
widthFrequency | Width of the bandstop |
stopBandDb | Permitted ripples in dB in the stopband |
The documentation for this struct was generated from the following file: