org.apache.commons.math.analysis.interpolation
Class DividedDifferenceInterpolator
java.lang.Object
org.apache.commons.math.analysis.interpolation.DividedDifferenceInterpolator
- All Implemented Interfaces:
- Serializable, UnivariateRealInterpolator
public class DividedDifferenceInterpolator
- extends Object
- implements UnivariateRealInterpolator, 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
DividedDifferenceInterpolator
public DividedDifferenceInterpolator()
interpolate
public PolynomialFunctionNewtonForm interpolate(double[] x,
double[] y)
throws DuplicateSampleAbscissaException
- Computes an interpolating function for the data set.
- Specified by:
interpolate
in interface UnivariateRealInterpolator
- Parameters:
x
- the interpolating points arrayy
- the interpolating values array
- Returns:
- a function which interpolates the data set
- Throws:
DuplicateSampleAbscissaException
- if arguments are invalid
jHepWork 3.1 ©