Package Filters

Class PoleZeroPair

java.lang.Object
Filters.PoleZeroPair
All Implemented Interfaces:
Comparable<PoleZeroPair>

public class PoleZeroPair extends Object implements Comparable<PoleZeroPair>
  • Constructor Details

    • PoleZeroPair

      public PoleZeroPair(Complex pole, Complex zero, boolean oddOne)
  • Method Details

    • getPole

      public Complex getPole()
      Returns:
      the pole
    • setPole

      public void setPole(Complex pole)
      Parameters:
      pole - the pole to set
    • getZero

      public Complex getZero()
      Returns:
      the zero
    • setZero

      public void setZero(Complex zero)
      Parameters:
      zero - the zero to set
    • compareTo

      public int compareTo(PoleZeroPair o)
      Specified by:
      compareTo in interface Comparable<PoleZeroPair>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isOddOne

      public boolean isOddOne()
      OddOne is set to true if this was an odd ordered high or low pass filter, in which case it won't have conjugate pair.
      Returns:
      the oddOne
    • setOddOne

      public void setOddOne(boolean oddOne)
      Parameters:
      oddOne - the oddOne to set