Package jline.inference.util
Object SplineInterpolator
-
- All Implemented Interfaces:
public class SplineInterpolatorSpline interpolation utility using Apache Commons Math3.
-
-
Field Summary
Fields Modifier and Type Field Description public final static SplineInterpolatorINSTANCE
-
Method Summary
Modifier and Type Method Description final static DoubleArrayinterpolate(DoubleArray xOld, DoubleArray yOld, DoubleArray xNew)Interpolate data at new x-values using cubic spline interpolation. -
-
Method Detail
-
interpolate
final static DoubleArray interpolate(DoubleArray xOld, DoubleArray yOld, DoubleArray 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
-
-
-
-