public class CubicSplineInterpolator extends PiecewisePolynomialInterpolator
| Constructor and Description |
|---|
CubicSplineInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
PiecewisePolynomialResult |
interpolate(double[] xValues,
double[] yValues)
If (xValues length) = (yValues length), Not-A-Knot endpoint conditions are used.
|
PiecewisePolynomialResult |
interpolate(double[] xValues,
double[][] yValuesMatrix)
If (xValues length) = (yValuesMatrix NumberOfColumn), Not-A-Knot endpoint conditions are used.
|
PiecewisePolynomialResultsWithSensitivity |
interpolateWithSensitivity(double[] xValues,
double[] yValues)
Derive interpolant on {xValues_i, yValues_i} and (yValues) node sensitivity.
|
getPrimaryMethod, getValue, getValue, interpolate, interpolate, interpolate, interpolate, interpolate, interpolatepublic PiecewisePolynomialResult interpolate(double[] xValues, double[] yValues)
interpolate in class PiecewisePolynomialInterpolatorxValues - X values of datayValues - Y values of dataPiecewisePolynomialResult containing knots, coefficients of piecewise polynomials,
number of intervals, degree of polynomials, dimension of splinepublic PiecewisePolynomialResult interpolate(double[] xValues, double[][] yValuesMatrix)
interpolate in class PiecewisePolynomialInterpolatorxValues - X values of datayValuesMatrix - Y values of data, where NumberOfRow defines dimension of the splinePiecewisePolynomialResult containing knots, coefficients of piecewise polynomials,
number of intervals, degree of polynomials, dimension of splinepublic PiecewisePolynomialResultsWithSensitivity interpolateWithSensitivity(double[] xValues, double[] yValues)
PiecewisePolynomialInterpolatorinterpolateWithSensitivity in class PiecewisePolynomialInterpolatorxValues - X values of datayValues - Y values of dataPiecewisePolynomialResultsWithSensitivityCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.