public abstract class PiecewisePolynomialInterpolator extends Object
| Constructor and Description |
|---|
PiecewisePolynomialInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
PiecewisePolynomialInterpolator |
getPrimaryMethod()
Hyman filter modifies derivative values at knot points which are initially computed by a "primary" interpolator.
|
protected double |
getValue(double[] coefs,
double x,
double leftknot) |
protected double |
getValue(DoubleArray coefs,
double x,
double leftknot) |
abstract PiecewisePolynomialResult |
interpolate(double[] xValues,
double[] yValues)
Interpolate.
|
abstract PiecewisePolynomialResult |
interpolate(double[] xValues,
double[][] yValuesMatrix)
Interpolate.
|
DoubleArray |
interpolate(double[] xValues,
double[][] yValuesMatrix,
double x)
Interpolate.
|
DoubleMatrix |
interpolate(double[] xValues,
double[][] yValuesMatrix,
double[] x)
Interpolate.
|
DoubleMatrix[] |
interpolate(double[] xValues,
double[][] yValuesMatrix,
double[][] xMatrix)
Interpolate.
|
double |
interpolate(double[] xValues,
double[] yValues,
double xKey)
Interpolate.
|
DoubleArray |
interpolate(double[] xValues,
double[] yValues,
double[] xKeys)
Interpolate.
|
DoubleMatrix |
interpolate(double[] xValues,
double[] yValues,
double[][] xMatrix)
Interpolate.
|
abstract PiecewisePolynomialResultsWithSensitivity |
interpolateWithSensitivity(double[] xValues,
double[] yValues)
Derive interpolant on {xValues_i, yValues_i} and (yValues) node sensitivity.
|
public abstract PiecewisePolynomialResult interpolate(double[] xValues, double[] yValues)
xValues - X values of datayValues - Y values of dataPiecewisePolynomialResult containing knots, coefficients of piecewise polynomials,
number of intervals, degree of polynomials, dimension of splinepublic abstract PiecewisePolynomialResult interpolate(double[] xValues, double[][] yValuesMatrix)
xValues - X values of datayValuesMatrix - Y values of datapublic double interpolate(double[] xValues,
double[] yValues,
double xKey)
xValues - X values of datayValues - Y values of dataxKey - the keypublic DoubleArray interpolate(double[] xValues, double[] yValues, double[] xKeys)
xValues - X values of datayValues - Y values of dataxKeys - the keyspublic DoubleMatrix interpolate(double[] xValues, double[] yValues, double[][] xMatrix)
xValues - the valuesyValues - the valuesxMatrix - the matrixpublic DoubleArray interpolate(double[] xValues, double[][] yValuesMatrix, double x)
xValues - the valuesyValuesMatrix - the matrixx - the xpublic DoubleMatrix interpolate(double[] xValues, double[][] yValuesMatrix, double[] x)
xValues - the valuesyValuesMatrix - the matrixx - the spublic DoubleMatrix[] interpolate(double[] xValues, double[][] yValuesMatrix, double[][] xMatrix)
xValues - the valuesyValuesMatrix - the matrixxMatrix - the matrixpublic abstract PiecewisePolynomialResultsWithSensitivity interpolateWithSensitivity(double[] xValues, double[] yValues)
xValues - X values of datayValues - Y values of dataPiecewisePolynomialResultsWithSensitivitypublic PiecewisePolynomialInterpolator getPrimaryMethod()
protected double getValue(DoubleArray coefs, double x, double leftknot)
coefs - {a_n,a_{n-1},...} of f(x) = a_n x^{n} + a_{n-1} x^{n-1} + ....x - the xleftknot - the knot specifying underlying interpolation functionprotected double getValue(double[] coefs,
double x,
double leftknot)
coefs - {a_n,a_{n-1},...} of f(x) = a_n x^{n} + a_{n-1} x^{n-1} + ....x - the xleftknot - the knot specifying underlying interpolation functionCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.