Package de.gsi.math.filter.iir
Class Bessel
- java.lang.Object
-
- de.gsi.math.filter.iir.Cascade
-
- de.gsi.math.filter.iir.Bessel
-
public class Bessel extends Cascade
User facing class which contains all the methods the user uses to create Bessel filters. This done in this way: Bessel bessel = new Bessel(); Then call one of the methods below to create low-,high-,band-, or stopband filters. For example: bessel.bandPass(2,250,50,5);
-
-
Constructor Summary
Constructors Constructor Description Bessel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbandPass(int order, double sampleRate, double centerFrequency, double widthFrequency)Bandpass filter with default topologyvoidbandPass(int order, double sampleRate, double centerFrequency, double widthFrequency, int directFormType)Bandpass filter with custom topologyvoidbandStop(int order, double sampleRate, double centerFrequency, double widthFrequency)Bandstop filter with default topologyvoidbandStop(int order, double sampleRate, double centerFrequency, double widthFrequency, int directFormType)Bandstop filter with custom topologyvoidhighPass(int order, double sampleRate, double cutoffFrequency)Highpass filter with default filter topologyvoidhighPass(int order, double sampleRate, double cutoffFrequency, int directFormType)Highpass filter with custom topologyvoidlowPass(int order, double sampleRate, double cutoffFrequency)Bessel Lowpass filter with default topologyvoidlowPass(int order, double sampleRate, double cutoffFrequency, int directFormType)Bessel Lowpass filter with custom topology-
Methods inherited from class de.gsi.math.filter.iir.Cascade
applyScale, filter, getBiquad, getNumBiquads, reset, response, setLayout
-
-
-
-
Method Detail
-
bandPass
public void bandPass(int order, double sampleRate, double centerFrequency, double widthFrequency)Bandpass filter with default topology- Parameters:
order- Filter ordersampleRate- Sampling ratecenterFrequency- Center frequencywidthFrequency- Width of the notch
-
bandPass
public void bandPass(int order, double sampleRate, double centerFrequency, double widthFrequency, int directFormType)Bandpass filter with custom topology- Parameters:
order- Filter ordersampleRate- Sampling ratecenterFrequency- Center frequencywidthFrequency- Width of the notchdirectFormType- The filter topology (see DirectFormAbstract)
-
bandStop
public void bandStop(int order, double sampleRate, double centerFrequency, double widthFrequency)Bandstop filter with default topology- Parameters:
order- Filter order (actual order is twice)sampleRate- Samping rate of the systemcenterFrequency- Center frequencywidthFrequency- Width of the notch
-
bandStop
public void bandStop(int order, double sampleRate, double centerFrequency, double widthFrequency, int directFormType)Bandstop filter with custom topology- Parameters:
order- Filter order (actual order is twice)sampleRate- Samping rate of the systemcenterFrequency- Center frequencywidthFrequency- Width of the notchdirectFormType- The filter topology
-
highPass
public void highPass(int order, double sampleRate, double cutoffFrequency)Highpass filter with default filter topology- Parameters:
order- Filter order (ideally only even orders)sampleRate- Sampling rate of the systemcutoffFrequency- Cutoff of the system
-
highPass
public void highPass(int order, double sampleRate, double cutoffFrequency, int directFormType)Highpass filter with custom topology- Parameters:
order- Filter order (ideally only even orders)sampleRate- Sampling rate of the systemcutoffFrequency- Cutoff of the systemdirectFormType- The filter topology. See DirectFormAbstract.
-
lowPass
public void lowPass(int order, double sampleRate, double cutoffFrequency)Bessel Lowpass filter with default topology- Parameters:
order- The order of the filtersampleRate- The sampling rate of the systemcutoffFrequency- the cutoff frequency
-
lowPass
public void lowPass(int order, double sampleRate, double cutoffFrequency, int directFormType)Bessel Lowpass filter with custom topology- Parameters:
order- The order of the filtersampleRate- The sampling rate of the systemcutoffFrequency- The cutoff frequencydirectFormType- The filter topology. This is either DirectFormAbstract.DIRECT_FORM_I or DIRECT_FORM_II
-
-