Package adaptlil.interpolation
Class Interpolation
java.lang.Object
adaptlil.interpolation.Interpolation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate doublecalcAverage(double[] a) private doublecosineInterpolate(double a, double b, double mu) Source: http://paulbourke.net/miscellaneous/interpolation/ Code bydouble[][]interpolate(double[] a, double[] b, int delta) double[]interpolate(double a, double b, int delta) double[][]linearInterpolation(double[] a, double[] b, int delta) Linear interpolates an array of shorts
-
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 arrayb- The Ending arraydelta- 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)
-