File-By-File
ApacheSpline

ApacheSpline

Implementation of PolynomialSplineFunction - very cool! This allows you to use math from Apache Commons Math, which is a good thing, because I am absolutely terrible at math. In order to make use of this, you'll need to add Apache Commons Math as a dependency (preferably version 3.6.1).

Methods

ApacheSpline(double[] x, double[] y)

Creates a new ApacheSpline.

ApacheSpline(Interpolator interpolator, double[] x, double[] y)

Creates a new ApacheSpline.

interpolateY(double x)

Interpolates the Y value of the spline at a given X value.

getStartPoint()

Gets the start point of the spline.

getEndPoint()

Gets the end point of the spline.

interpolator()

Gets the interpolator of the spline.

toString()

Converts the spline to a string.