Class SplineInterpolator

java.lang.Object
jline.inference.util.SplineInterpolator

public final class SplineInterpolator extends Object
Spline interpolation utility using Apache Commons Math3.
  • 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-values
      xNew - new x-values at which to evaluate
      Returns:
      interpolated y-values at xNew