The interpolation polynomials match all sample points, including both values and provided derivatives. There is one polynomial for each component of the values vector. All polynomials have the same degree. The degree of the polynomials depends on the number of points and number of derivatives at each point. For example the interpolation polynomials for n sample points without any derivatives all have degree n-1. The interpolation polynomials for n sample points with the two extreme points having value and first derivative and the remaining points having value only all have degree n+1. The interpolation polynomial for n sample points with value, first and second derivative for all points all have degree 3n-1.
| Modifier and Type | Field and Description |
|---|---|
| private final List | abscissae
Sample abscissae. |
| private final List | bottomDiagonal
Bottom diagonal of the divided differences array. |
| private final List | topDiagonal
Top diagonal of the divided differences array. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSamplePoint(final double
abscissa of the sample point x, final double[]... value and derivatives of the sample point
(if only one row is passed, it is the value, if two rows are
passed the first one is the value and the second the derivative
and so on) value)Add a sample point. |
| private void | |
| public PolynomialFunction[] | Returns: interpolation polynomials array
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Compute the interpolation polynomials. |
| private PolynomialFunction | Returns: polynomialpolynomials coefficients c)
Deprecated
as a consequence of
PolynomialFunction being deprecated.
Create a polynomial from its coefficients. |
| public double[] | Returns: interpolated valueinterpolation abscissa x)Implements org. Interpolate value at a specified abscissa. |
| public DerivativeStructure[] | Returns: interpolated valueinterpolation abscissa x)Implements org. Interpolate value at a specified abscissa. |
| abscissae | back to summary |
|---|---|
| private final List<Double> abscissae Sample abscissae. | |
| bottomDiagonal | back to summary |
|---|---|
| private final List<double[]> bottomDiagonal Bottom diagonal of the divided differences array. | |
| topDiagonal | back to summary |
|---|---|
| private final List<double[]> topDiagonal Top diagonal of the divided differences array. | |
| HermiteInterpolator | back to summary |
|---|---|
| public HermiteInterpolator() Create an empty interpolator. | |
| addSamplePoint | back to summary |
|---|---|
| public void addSamplePoint(final double x, final double[]... value) throws ZeroException, MathArithmeticException Add a sample point. This method must be called once for each sample point. It is allowed to mix some calls with values only with calls with values and first derivatives. The point abscissae for all calls must be different.
| |
| checkInterpolation | back to summary |
|---|---|
| private void checkInterpolation() throws NoDataException Check interpolation can be performed.
| |
| getPolynomials | back to summary |
|---|---|
| public PolynomialFunction[] getPolynomials() throws NoDataException
Deprecated as a consequence of Compute the interpolation polynomials.
| |
| polynomial | back to summary |
|---|---|
| private PolynomialFunction polynomial(double... c)
Deprecated as a consequence of Create a polynomial from its coefficients.
| |
| value | back to summary |
|---|---|
| public double[] value(double x) throws NoDataException Implements org. Interpolate value at a specified abscissa.
Calling this method is equivalent to call the
| |
| value | back to summary |
|---|---|
| public DerivativeStructure[] value(final DerivativeStructure x) throws NoDataException Implements org. Interpolate value at a specified abscissa.
Calling this method is equivalent to call the
| |