public class NevilleInterpolator extends Object implements UnivariateInterpolator, Serializable
The actual code of Neville's algorithm is in PolynomialFunctionLagrangeForm, this class provides an easy-to-use interface to it.
| Constructor and Description |
|---|
NevilleInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
PolynomialFunctionLagrangeForm |
interpolate(double[] x,
double[] y)
Computes an interpolating function for the data set.
|
public PolynomialFunctionLagrangeForm interpolate(double[] x, double[] y) throws MathIllegalArgumentException
interpolate in interface UnivariateInterpolatorx - Interpolating points.y - Interpolating values.MathIllegalArgumentException - if the array lengths are different.MathIllegalArgumentException - if the number of points is less than 2.MathIllegalArgumentException - if two abscissae have the same
value.Copyright © 2016–2017 Hipparchus.org. All rights reserved.