Class SplineInterpolator

java.lang.Object
Filters.interpolate.PolyInterpolator
Filters.interpolate.SplineInterpolator
All Implemented Interfaces:
Interpolator

public class SplineInterpolator extends PolyInterpolator
  • Constructor Details

    • SplineInterpolator

      public SplineInterpolator()
  • Method Details

    • setInputData

      public void setInputData(double[] inputArray)
      Description copied from interface: Interpolator
      Set a new array of input data. The interpolator will probably hold some history from previous data in a buffer.
      Specified by:
      setInputData in interface Interpolator
      Overrides:
      setInputData in class PolyInterpolator
      Parameters:
      inputArray - array of input data.
    • getOutputValue

      public double getOutputValue(double arrayPosition)
      Description copied from interface: Interpolator
      Get an output value for a specific point. 0 refers to the exact position of the first input sample, though there may be buffered data allowing the extraction of data from slightly earlier than that.
      Parameters:
      arrayPosition - picking position. Must be >= 0 and invalid input: '<'= length of input data-1
      Returns:
      value picked from the input array and any history buffer