public class NaturalSplineInterpolator extends PiecewisePolynomialInterpolator
C2 cubic spline interpolator with the natural endpoint condition, i.e., the second derivative values are zero at the first data point and the last data point.
| Constructor and Description |
|---|
NaturalSplineInterpolator()
Constructor.
|
NaturalSplineInterpolator(com.opengamma.strata.math.impl.interpolation.CubicSplineSolver inherit) |
| Modifier and Type | Method and Description |
|---|---|
PiecewisePolynomialResult |
interpolate(double[] xValues,
double[] yValues)
Interpolate.
|
PiecewisePolynomialResult |
interpolate(double[] xValues,
double[][] yValuesMatrix)
Interpolate.
|
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 NaturalSplineInterpolator()
public NaturalSplineInterpolator(com.opengamma.strata.math.impl.interpolation.CubicSplineSolver inherit)
inherit - the solverpublic PiecewisePolynomialResult interpolate(double[] xValues, double[] yValues)
PiecewisePolynomialInterpolatorinterpolate 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)
PiecewisePolynomialInterpolatorinterpolate 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.