Class 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
      void bandPass​(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb)
      Bandpass filter with default topology
      void bandPass​(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb, int directFormType)
      Bandpass filter with custom topology
      void bandStop​(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb)
      Band-stop filter with default topology
      void bandStop​(int order, double sampleRate, double centerFrequency, double widthFrequency, double rippleDb, int directFormType)
      Band-stop filter with custom topology
      void highPass​(int order, double sampleRate, double cutoffFrequency, double rippleDb)
      ChebyshevI High-pass filter with default topology
      void highPass​(int order, double sampleRate, double cutoffFrequency, double rippleDb, int directFormType)
      ChebyshevI Low-pass filter and custom filter topology
      void lowPass​(int order, double sampleRate, double cutoffFrequency, double rippleDb)
      ChebyshevI Low-pass filter with default topology
      void lowPass​(int order, double sampleRate, double cutoffFrequency, double rippleDb, int directFormType)
      ChebyshevI Low-pass filter with custom topology
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChebyshevI

        public ChebyshevI()
    • Method Detail

      • bandPass

        public void bandPass​(int order,
                             double sampleRate,
                             double centerFrequency,
                             double widthFrequency,
                             double rippleDb)
        Bandpass filter with default topology
        Parameters:
        order - Filter order
        sampleRate - sampling rate
        centerFrequency - center frequency
        widthFrequency - width of the notch
        rippleDb - 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 order
        sampleRate - Sampling rate
        centerFrequency - center frequency
        widthFrequency - width of the notch
        rippleDb - pass-band ripple in decibel sensible value: 1dB
        directFormType - 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 system
        centerFrequency - centre frequency
        widthFrequency - Width of the notch
        rippleDb - 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 system
        centerFrequency - centre frequency
        widthFrequency - Width of the notch
        rippleDb - pass-band ripple in decibel sensible value: 1dB
        directFormType - 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 filter
        sampleRate - The sampling rate of the system
        cutoffFrequency - the cutoff frequency
        rippleDb - 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 filter
        sampleRate - The sampling rate of the system
        cutoffFrequency - The cutoff frequency
        rippleDb - pass-band ripple in decibel sensible value: 1dB
        directFormType - 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 filter
        sampleRate - The sampling rate of the system
        cutoffFrequency - the cutoff frequency
        rippleDb - 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 filter
        sampleRate - The sampling rate of the system
        cutoffFrequency - The cutoff frequency
        rippleDb - pass-band ripple in decibel sensible value: 1dB
        directFormType - The filter topology. This is either DirectFormAbstract.DIRECT_FORM_I or DIRECT_FORM_II