org.apache.commons.math.analysis.interpolation
public class NevilleInterpolator extends Object implements UnivariateRealInterpolator, Serializable
The actual code of Neville's evalution is in PolynomialFunctionLagrangeForm, this class provides an easy-to-use interface to it.
Modifier and Type | Field and Description |
---|---|
(package private) static long |
serialVersionUID
serializable version identifier
|
Constructor and Description |
---|
NevilleInterpolator() |
Modifier and Type | Method and Description |
---|---|
PolynomialFunctionLagrangeForm |
interpolate(double[] x,
double[] y)
Computes an interpolating function for the data set.
|
static final long serialVersionUID
public PolynomialFunctionLagrangeForm interpolate(double[] x, double[] y) throws MathException
interpolate
in interface UnivariateRealInterpolator
x
- the interpolating points arrayy
- the interpolating values arrayMathException
- if arguments are invalidCopyright (c) 2003-2014 Apache Software Foundation