Class BiquadFilter.Section

java.lang.Object
org.wpilib.math.filter.BiquadFilter.Section
Enclosing class:
BiquadFilter

public static final class BiquadFilter.Section extends Object
A single biquad (second-order) section. a₀ is assumed normalized to 1.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    The a1 feedback coefficient.
    final double
    The a2 feedback coefficient.
    final double
    The b0 feedforward coefficient.
    final double
    The b1 feedforward coefficient.
    final double
    The b2 feedforward coefficient.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Section(double b0, double b1, double b2, double a1, double a2)
    Creates a biquad section.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • b0

      public final double b0
      The b0 feedforward coefficient.
    • b1

      public final double b1
      The b1 feedforward coefficient.
    • b2

      public final double b2
      The b2 feedforward coefficient.
    • a1

      public final double a1
      The a1 feedback coefficient.
    • a2

      public final double a2
      The a2 feedback coefficient.
  • Constructor Details

    • Section

      public Section(double b0, double b1, double b2, double a1, double a2)
      Creates a biquad section.
      Parameters:
      b0 - The b0 feedforward coefficient.
      b1 - The b1 feedforward coefficient.
      b2 - The b2 feedforward coefficient.
      a1 - The a1 feedback coefficient.
      a2 - The a2 feedback coefficient.