public final class CurveInterpolators extends Object
| Modifier and Type | Field and Description |
|---|---|
static CurveInterpolator |
DOUBLE_QUADRATIC
Double quadratic interpolator.
|
static CurveInterpolator |
LINEAR
Linear interpolator.
|
static CurveInterpolator |
LOG_LINEAR
Log linear interpolator.
|
static CurveInterpolator |
LOG_NATURAL_SPLINE_DISCOUNT_FACTOR
Log natural spline interpolator for discount factors.
|
static CurveInterpolator |
LOG_NATURAL_SPLINE_MONOTONE_CUBIC
Log natural spline interpolation with monotonicity filter.
|
static CurveInterpolator |
NATURAL_CUBIC_SPLINE
Natural cubic spline interpolator.
|
static CurveInterpolator |
NATURAL_SPLINE
Natural spline interpolator.
|
static CurveInterpolator |
NATURAL_SPLINE_NONNEGATIVITY_CUBIC
Natural spline interpolator with non-negativity filter.
|
static CurveInterpolator |
PCHIP
Piecewise cubic Hermite interpolator with monotonicity.
|
static CurveInterpolator |
PRODUCT_LINEAR
Product linear interpolator.
|
static CurveInterpolator |
PRODUCT_NATURAL_SPLINE
Product natural spline interpolator.
|
static CurveInterpolator |
PRODUCT_NATURAL_SPLINE_MONOTONE_CUBIC
Product natural spline interpolator with monotonicity filter.
|
static CurveInterpolator |
SQUARE_LINEAR
Square linear interpolator.
|
static CurveInterpolator |
STEP_UPPER
Step upper interpolator.
|
static CurveInterpolator |
TIME_SQUARE
Time square interpolator.
|
public static final CurveInterpolator LINEAR
The interpolated value of the function y at x between two data points
(x1, y1) and (x2, y2) is given by:
y = y1 + (x - x1) * (y2 - y1)
/ (x2 - x1).
public static final CurveInterpolator LOG_LINEAR
The interpolated value of the function y at x between two data points
(x1, y1) and (x2, y2) is given by:
y = y1 (y2 / y1) ^ ((x - x1) /
(x2 - x1))
It is the equivalent of performing a linear interpolation on a data set after
taking the logarithm of the y-values.
public static final CurveInterpolator SQUARE_LINEAR
The interpolator is used for interpolation on variance for options. Interpolation is linear on y^2. All values of y must be positive.
public static final CurveInterpolator DOUBLE_QUADRATIC
public static final CurveInterpolator TIME_SQUARE
The interpolation is linear on x y^2. The interpolator is used for interpolation on
integrated variance for options. All values of y must be positive.
public static final CurveInterpolator LOG_NATURAL_SPLINE_MONOTONE_CUBIC
Finds an interpolant F(x) = exp( f(x) ) where f(x) is a Natural cubic
spline with Monotonicity cubic filter.
public static final CurveInterpolator LOG_NATURAL_SPLINE_DISCOUNT_FACTOR
Finds an interpolant F(x) = exp( f(x) ) where f(x) is a natural cubic spline going through
the point (0,1).
public static final CurveInterpolator NATURAL_CUBIC_SPLINE
public static final CurveInterpolator NATURAL_SPLINE
public static final CurveInterpolator NATURAL_SPLINE_NONNEGATIVITY_CUBIC
public static final CurveInterpolator PRODUCT_NATURAL_SPLINE
Given a data set (x[i], y[i]), interpolate (x[i], x[i] * y[i]) by natural cubic spline.
As a curve for the product x * y is not well-defined at x = 0, we impose
the condition that all of the x data to be the same sign, such that the origin is not within data range.
The x key value must not be close to zero.
public static final CurveInterpolator PRODUCT_NATURAL_SPLINE_MONOTONE_CUBIC
Given a data set (x[i], y[i]), interpolate (x[i], x[i] * y[i]) by natural
cubic spline with monotonicity filter.
public static final CurveInterpolator PRODUCT_LINEAR
Given a data set (x[i], y[i]), interpolate (x[i], x[i] * y[i]) by linear functions.
As a curve for the product x * y is not well-defined at x = 0, we impose
the condition that all of the x data to be the same sign, such that the origin is not within data range.
The x key value must not be close to zero.
public static final CurveInterpolator STEP_UPPER
The interpolated value at x s.t. x1 < x =< x2 is the value at x2.
public static final CurveInterpolator PCHIP
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.