java.lang.Object
com.stuypulse.stuylib.streams.numbers.filters.Derivative
All Implemented Interfaces:
IFilter

public class Derivative extends Object implements IFilter
This class takes an IStream and gives you the derivative with respect to time.
  • Constructor Details

    • Derivative

      public Derivative()
  • Method Details

    • get

      public double get(double next)
      Description copied from interface: IFilter
      Get next value in Filter based on the next value given
      Specified by:
      get in interface IFilter
      Parameters:
      next - next input value in the stream
      Returns:
      the output value of the filter