Interface Interpolator

All Known Implementing Classes:
PolyInterpolator, PolyInterpolator0, PolyInterpolator1, PolyInterpolator2, SplineInterpolator

public interface Interpolator
Interface for an interpolator. These are a bit like filters in that they have some history and therefore some delay. Designed for use with the decimator, when the decimation factor is non integer.
Author:
dg50
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getOutputValue(double arrayPosition)
    Get an output value for a specific point.
    double
    Get the memory or delay in samples.
    void
    setInputData(double[] inputArray)
    Set a new array of input data.
  • Method Details

    • getSampleDelay

      double getSampleDelay()
      Get the memory or delay in samples.
      Returns:
      average delay in samples.
    • setInputData

      void setInputData(double[] inputArray)
      Set a new array of input data. The interpolator will probably hold some history from previous data in a buffer.
      Parameters:
      inputArray - array of input data.
    • getOutputValue

      double getOutputValue(double arrayPosition)
      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