public abstract class PiecewisePolynomialInterpolator2D extends Object
| Constructor and Description |
|---|
PiecewisePolynomialInterpolator2D() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getValue(DoubleMatrix coefMat,
double x0,
double x1,
double leftKnot0,
double leftKnot1) |
abstract PiecewisePolynomialResult2D |
interpolate(double[] x0Values,
double[] x1Values,
double[][] yValues)
Given a set of data points (x0Values_i, x1Values_j, yValues_{ij}), 2d spline interpolation
is returned such that f(x0Values_i, x1Values_j) = yValues_{ij}.
|
DoubleMatrix |
interpolate(double[] x0Values,
double[] x1Values,
double[][] yValues,
double[] x0Keys,
double[] x1Keys) |
double |
interpolate(double[] x0Values,
double[] x1Values,
double[][] yValues,
double x0Key,
double x1Key) |
public abstract PiecewisePolynomialResult2D interpolate(double[] x0Values, double[] x1Values, double[][] yValues)
x0Values - the valuesx1Values - the valuesyValues - the valuesPiecewisePolynomialResult2D containing positions of knots in x0 direction,
positions of knots in x1 direction, coefficients of interpolant,
number of intervals in x0 direction, number of intervals in x1 direction, order of polynomial functionpublic DoubleMatrix interpolate(double[] x0Values, double[] x1Values, double[][] yValues, double[] x0Keys, double[] x1Keys)
x0Values - the valuesx1Values - the valuesyValues - the valuesx0Keys - the keysx1Keys - the keyspublic double interpolate(double[] x0Values,
double[] x1Values,
double[][] yValues,
double x0Key,
double x1Key)
x0Values - the valuesx1Values - the valuesyValues - the valuesx0Key - the keyx1Key - the keyprotected double getValue(DoubleMatrix coefMat, double x0, double x1, double leftKnot0, double leftKnot1)
coefMat - the coefMatx0 - the x0x1 - the x1leftKnot0 - the leftKnot0leftKnot1 - the leftKnot1Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.