Class Interpolation

java.lang.Object
adaptlil.interpolation.Interpolation

public class Interpolation extends Object
  • Constructor Details

    • Interpolation

      public Interpolation()
  • Method Details

    • cosineInterpolate

      private double cosineInterpolate(double a, double b, double mu)
      Source: http://paulbourke.net/miscellaneous/interpolation/ Code by
      Parameters:
      a -
      b -
      mu -
      Returns:
    • interpolate

      public double[] interpolate(double a, double b, int delta)
    • interpolate

      public double[][] interpolate(double[] a, double[] b, int delta)
    • linearInterpolation

      public double[][] linearInterpolation(double[] a, double[] b, int delta)
      Linear interpolates an array of shorts
      Parameters:
      a - The starting array
      b - The Ending array
      delta - The number of short arrays to interpolate
      Returns:
      Returns a 2D array of shorts with the delta interpolated short arrays.
    • calcAverage

      private double calcAverage(double[] a)