/** * Calculate the function value at the given point. * * @param z Point at which the function value is to be computed. * @return the function value. * @throws DimensionMismatchException if {@code x} and {@code y} have * different lengths. * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if {@code x} is not sorted in strictly increasing order. * @throws NumberIsTooSmallException if the size of {@code x} is less * than 2. */ public double value(double z) { return evaluateInternal(x, y, z); }
throws DimensionMismatchException, NumberIsTooSmallException, NonMonotonicSequenceException { if (verifyInterpolationArray(x, y, false)) { return evaluateInternal(x, y, z); return evaluateInternal(xNew, yNew, z);
/** * Calculate the function value at the given point. * * @param z Point at which the function value is to be computed. * @return the function value. * @throws DimensionMismatchException if {@code x} and {@code y} have * different lengths. * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if {@code x} is not sorted in strictly increasing order. * @throws NumberIsTooSmallException if the size of {@code x} is less * than 2. */ public double value(double z) { return evaluateInternal(x, y, z); }
/** * Calculate the function value at the given point. * * @param z Point at which the function value is to be computed. * @return the function value. * @throws DimensionMismatchException if {@code x} and {@code y} have * different lengths. * @throws org.apache.commons.math3.exception.NonMonotonicSequenceException * if {@code x} is not sorted in strictly increasing order. * @throws NumberIsTooSmallException if the size of {@code x} is less * than 2. */ public double value(double z) { return evaluateInternal(x, y, z); }
throws DimensionMismatchException, NumberIsTooSmallException, NonMonotonicSequenceException { if (verifyInterpolationArray(x, y, false)) { return evaluateInternal(x, y, z); return evaluateInternal(xNew, yNew, z);
throws DimensionMismatchException, NumberIsTooSmallException, NonMonotonicSequenceException { if (verifyInterpolationArray(x, y, false)) { return evaluateInternal(x, y, z); return evaluateInternal(xNew, yNew, z);