Class DividedDifferenceInterpolator

java.lang.Object
org.apache.commons.math4.analysis.interpolation.DividedDifferenceInterpolator
All Implemented Interfaces:
java.io.Serializable, UnivariateInterpolator

public class DividedDifferenceInterpolator
extends java.lang.Object
implements UnivariateInterpolator, java.io.Serializable
Implements the Divided Difference Algorithm for interpolation of real univariate functions. For reference, see Introduction to Numerical Analysis, ISBN 038795452X, chapter 2.

The actual code of Neville's evaluation is in PolynomialFunctionLagrangeForm, this class provides an easy-to-use interface to it.

Since:
1.2
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    DividedDifferenceInterpolator()  
  • Method Summary

    Modifier and Type Method Description
    protected static double[] computeDividedDifference​(double[] x, double[] y)
    Return a copy of the divided difference array.
    PolynomialFunctionNewtonForm interpolate​(double[] x, double[] y)
    Compute an interpolating function for the dataset.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait