#include <Butterworth.h>
|
| void | setup (double sampleRate, double centerFrequency, double widthFrequency) |
| |
| void | setup (int reqOrder, double sampleRate, double centerFrequency, double widthFrequency) |
| |
| void | setupN (double centerFrequency, double widthFrequency) |
| |
| void | setupN (int reqOrder, double centerFrequency, double widthFrequency) |
| |
| 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::Butterworth::BandPass< FilterOrder, StateType >
Butterworth Bandpass 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::Butterworth::BandPass< FilterOrder, StateType >::setup |
( |
double |
sampleRate, |
|
|
double |
centerFrequency, |
|
|
double |
widthFrequency |
|
) |
| |
|
inline |
Calculates the coefficients with the filter order provided by the instantiation
- Parameters
-
| sampleRate | Sampling rate |
| centerFrequency | Centre frequency of the bandpass |
| widthFrequency | Width of the bandpass |
◆ setup() [2/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
| void Iir::Butterworth::BandPass< FilterOrder, StateType >::setup |
( |
int |
reqOrder, |
|
|
double |
sampleRate, |
|
|
double |
centerFrequency, |
|
|
double |
widthFrequency |
|
) |
| |
|
inline |
Calculates the coefficients
- Parameters
-
| reqOrder | The actual order which can be less than the instantiated one |
| sampleRate | Sampling rate |
| centerFrequency | Centre frequency of the bandpass |
| widthFrequency | Width of the bandpass |
◆ setupN() [1/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
Calculates the coefficients with the filter order provided by the instantiation
- Parameters
-
| centerFrequency | Normalised centre frequency (0..1/2) of the bandpass |
| widthFrequency | Width of the bandpass in normalised freq |
◆ setupN() [2/2]
template<int FilterOrder = 4, class StateType = DirectFormII>
Calculates the coefficients
- Parameters
-
| reqOrder | The actual order which can be less than the instantiated one |
| centerFrequency | Normalised centre frequency (0..1/2) of the bandpass |
| widthFrequency | Width of the bandpass in normalised freq |
The documentation for this struct was generated from the following file: