Package de.gsi.math.filter.iir
Class ChebyshevI
- java.lang.Object
-
- de.gsi.math.filter.iir.Cascade
-
- de.gsi.math.filter.iir.ChebyshevI
-
public class ChebyshevI extends Cascade
User facing class which contains all the methods the user uses to create ChebyshevI filters. This done in this way: ChebyshevI chebyshevI = new ChebyshevI(); Then call one of the methods below to create low-,high-,band-, or stop-band filters. For example: chebyshevI.bandPass(2,250,50,5,0.5);
-
-
Constructor Summary
Constructors Constructor Description ChebyshevI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbandPass(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb)Bandpass filter with default topologyvoidbandPass(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb, int directFormType)Bandpass filter with custom topologyvoidbandStop(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb)Band-stop filter with default topologyvoidbandStop(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb, int directFormType)Band-stop filter with custom topologyvoidhighPass(int order, double sampleRate, double cutoffFrequency, double rippleDb)ChebyshevI High-pass filter with default topologyvoidhighPass(int order, double sampleRate, double cutoffFrequency, double rippleDb, int directFormType)ChebyshevI Low-pass filter and custom filter topologyvoidlowPass(int order, double sampleRate, double cutoffFrequency, double rippleDb)ChebyshevI Low-pass filter with default topologyvoidlowPass(int order, double sampleRate, double cutoffFrequency, double rippleDb, int directFormType)ChebyshevI Low-pass 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, double rippleDb)Bandpass filter with default topology- Parameters:
order- Filter ordersampleRate- sampling ratecenterFrequency- center frequencywidthFrequency- width of the notchrippleDb- pass-band ripple in decibel sensible value: 1dB
-
bandPass
public void bandPass(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb, int directFormType)Bandpass filter with custom topology- Parameters:
order- Filter ordersampleRate- Sampling ratecenterFrequency- center frequencywidthFrequency- width of the notchrippleDb- pass-band ripple in decibel sensible value: 1dBdirectFormType- The filter topology (see DirectFormAbstract)
-
bandStop
public void bandStop(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb)Band-stop filter with default topology- Parameters:
order- Filter order (actual order is twice)sampleRate- sampling rate of the systemcenterFrequency- centre frequencywidthFrequency- Width of the notchrippleDb- pass-band ripple in decibel sensible value: 1dB
-
bandStop
public void bandStop(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb, int directFormType)Band-stop filter with custom topology- Parameters:
order- Filter order (actual order is twice)sampleRate- Sampling rate of the systemcenterFrequency- centre frequencywidthFrequency- Width of the notchrippleDb- pass-band ripple in decibel sensible value: 1dBdirectFormType- the filter topology
-
highPass
public void highPass(int order, double sampleRate, double cutoffFrequency, double rippleDb)ChebyshevI High-pass filter with default topology- Parameters:
order- The order of the filtersampleRate- The sampling rate of the systemcutoffFrequency- the cutoff frequencyrippleDb- passband ripple in decibel sensible value: 1dB
-
highPass
public void highPass(int order, double sampleRate, double cutoffFrequency, double rippleDb, int directFormType)ChebyshevI Low-pass filter and custom filter topology- Parameters:
order- The order of the filtersampleRate- The sampling rate of the systemcutoffFrequency- The cutoff frequencyrippleDb- pass-band ripple in decibel sensible value: 1dBdirectFormType- The filter topology. This is either DirectFormAbstract.DIRECT_FORM_I or DIRECT_FORM_II
-
lowPass
public void lowPass(int order, double sampleRate, double cutoffFrequency, double rippleDb)ChebyshevI Low-pass filter with default topology- Parameters:
order- The order of the filtersampleRate- The sampling rate of the systemcutoffFrequency- the cutoff frequencyrippleDb- pass.band ripple in decibel sensible value: 1dB
-
lowPass
public void lowPass(int order, double sampleRate, double cutoffFrequency, double rippleDb, int directFormType)ChebyshevI Low-pass filter with custom topology- Parameters:
order- The order of the filtersampleRate- The sampling rate of the systemcutoffFrequency- The cutoff frequencyrippleDb- pass-band ripple in decibel sensible value: 1dBdirectFormType- The filter topology. This is either DirectFormAbstract.DIRECT_FORM_I or DIRECT_FORM_II
-
-