Class 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
      void bandPass​(int order, double sampleRate, double centerFrequency, double widthFrequency)
      Bandpass filter with default topology
      void bandPass​(int order, double sampleRate, double centerFrequency, double widthFrequency, int directFormType)
      Bandpass filter with custom topology
      void bandStop​(int order, double sampleRate, double centerFrequency, double widthFrequency)
      Bandstop filter with default topology
      void bandStop​(int order, double sampleRate, double centerFrequency, double widthFrequency, int directFormType)
      Bandstop filter with custom topology
      void highPass​(int order, double sampleRate, double cutoffFrequency)
      Highpass filter with default filter topology
      void highPass​(int order, double sampleRate, double cutoffFrequency, int directFormType)
      Highpass filter with custom topology
      void lowPass​(int order, double sampleRate, double cutoffFrequency)
      Bessel Lowpass filter with default topology
      void lowPass​(int order, double sampleRate, double cutoffFrequency, int directFormType)
      Bessel Lowpass filter with custom topology
      • Methods inherited from class java.lang.Object

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

      • Bessel

        public Bessel()
    • Method Detail

      • bandPass

        public void bandPass​(int order,
                             double sampleRate,
                             double centerFrequency,
                             double widthFrequency)
        Bandpass filter with default topology
        Parameters:
        order - Filter order
        sampleRate - Sampling rate
        centerFrequency - Center frequency
        widthFrequency - 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 order
        sampleRate - Sampling rate
        centerFrequency - Center frequency
        widthFrequency - Width of the notch
        directFormType - 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 system
        centerFrequency - Center frequency
        widthFrequency - 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 system
        centerFrequency - Center frequency
        widthFrequency - Width of the notch
        directFormType - 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 system
        cutoffFrequency - 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 system
        cutoffFrequency - Cutoff of the system
        directFormType - 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 filter
        sampleRate - The sampling rate of the system
        cutoffFrequency - 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 filter
        sampleRate - The sampling rate of the system
        cutoffFrequency - The cutoff frequency
        directFormType - The filter topology. This is either DirectFormAbstract.DIRECT_FORM_I or DIRECT_FORM_II