iir1
Loading...
Searching...
No Matches
Iir::ChebyshevII::BandShelf< FilterOrder, StateType > Struct Template Reference

#include <ChebyshevII.h>

Inheritance diagram for Iir::ChebyshevII::BandShelf< FilterOrder, StateType >:
Iir::PoleFilter< BandShelfBase, DirectFormII, 4, 4 *2 > Iir::CascadeStages<(MaxDigitalPoles+1)/2, DirectFormII >

Public Member Functions

void setup (double sampleRate, double centerFrequency, double widthFrequency, double gainDb, double stopBandDb)
void setup (int reqOrder, double sampleRate, double centerFrequency, double widthFrequency, double gainDb, double stopBandDb)
void setupN (double centerFrequency, double widthFrequency, double gainDb, double stopBandDb)
void setupN (int reqOrder, double centerFrequency, double widthFrequency, double gainDb, double stopBandDb)
Public Member Functions inherited from Iir::CascadeStages<(MaxDigitalPoles+1)/2, DirectFormII >
void reset ()
void setup (const double(&sosCoefficients)[MaxStages][6])
Sample filter (const Sample in)
const Cascade::Storage getCascadeStorage ()

Detailed Description

template<int FilterOrder = 4, class StateType = DirectFormII>
struct Iir::ChebyshevII::BandShelf< FilterOrder, StateType >

ChebyshevII bandshelf filter. Bandpass with specified gain and 0 dB gain in the stopband.

Parameters
FilterOrderReserves memory for a filter of the order FilterOrder
StateTypeThe filter topology: DirectFormI, DirectFormII, ...

Member Function Documentation

◆ setup() [1/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandShelf< FilterOrder, StateType >::setup ( double sampleRate,
double centerFrequency,
double widthFrequency,
double gainDb,
double stopBandDb )
inline

Calculates the coefficients of the filter

Parameters
sampleRateSampling rate
centerFrequencyCenter frequency of the bandpass
widthFrequencyWidth of the bandpass
gainDbGain in the passband. The stopband has always 0dB.
stopBandDbPermitted ripples in dB in the stopband

◆ setup() [2/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandShelf< FilterOrder, StateType >::setup ( int reqOrder,
double sampleRate,
double centerFrequency,
double widthFrequency,
double gainDb,
double stopBandDb )
inline

Calculates the coefficients of the filter

Parameters
reqOrderRequested order which can be less than the instantiated one
sampleRateSampling rate
centerFrequencyCenter frequency of the bandpass
widthFrequencyWidth of the bandpass
gainDbGain in the passband. The stopband has always 0dB.
stopBandDbPermitted ripples in dB in the stopband

◆ setupN() [1/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandShelf< FilterOrder, StateType >::setupN ( double centerFrequency,
double widthFrequency,
double gainDb,
double stopBandDb )
inline

Calculates the coefficients of the filter

Parameters
centerFrequencyNormalised centre frequency (0..1/2) of the bandpass
widthFrequencyWidth of the bandpass
gainDbGain in the passband. The stopband has always 0dB.
stopBandDbPermitted ripples in dB in the stopband

◆ setupN() [2/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::ChebyshevII::BandShelf< FilterOrder, StateType >::setupN ( int reqOrder,
double centerFrequency,
double widthFrequency,
double gainDb,
double stopBandDb )
inline

Calculates the coefficients of the filter

Parameters
reqOrderRequested order which can be less than the instantiated one
centerFrequencyNormalised centre frequency (0..1/2) of the bandpass
widthFrequencyWidth of the bandpass
gainDbGain in the passband. The stopband has always 0dB.
stopBandDbPermitted ripples in dB in the stopband

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