Package jline.inference.util
Class SplineInterpolator
java.lang.Object
jline.inference.util.SplineInterpolator
Spline interpolation utility using Apache Commons Math3.
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]interpolate(double[] xOld, double[] yOld, double[] xNew) Interpolate data at new x-values using cubic spline interpolation.
-
Method Details
-
interpolate
public static double[] interpolate(double[] xOld, double[] yOld, double[] xNew) Interpolate data at new x-values using cubic spline interpolation.- Parameters:
xOld- original x-values (sorted, distinct)yOld- original y-valuesxNew- new x-values at which to evaluate- Returns:
- interpolated y-values at xNew
-