org.jquantlib.math.interpolations
Class AbstractInterpolation2D
- java.lang.Object
-
- org.jquantlib.math.interpolations.AbstractInterpolation2D
-
- All Implemented Interfaces:
- Extrapolator, Interpolation2D, Ops.BinaryDoubleOp
- Direct Known Subclasses:
- BicubicSplineInterpolation, BilinearInterpolation, FlatExtrapolator2D
public class AbstractInterpolation2D extends java.lang.Object implements Interpolation2D
Base class for 2-D interpolations.Classes derived from this class will provide interpolated values from two sequences of length and , representing the discretized values of the and variables, and a matrix representing the tabulated function values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jquantlib.math.interpolations.Interpolation2D
Interpolation2D.Interpolator2D
-
-
Constructor Summary
Constructors Constructor and Description AbstractInterpolation2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanallowsExtrapolation()tells whether extrapolation is enabledvoiddisableExtrapolation()disable extrapolation in subsequent callsbooleanempty()voidenableExtrapolation()enable extrapolation in subsequent callsbooleanisInRange(double x, double y)intlocateX(double x)intlocateY(double y)doubleop(double x, double y)doubleop(double x, double y, boolean allowExtrapolation)voidupdate()doublexMax()doublexMin()doubleyMax()doubleyMin()
-
-
-
Method Detail
-
empty
public boolean empty()
- Specified by:
emptyin interfaceInterpolation2D
-
op
public double op(double x, double y)- Specified by:
opin interfaceInterpolation2D- Specified by:
opin interfaceOps.BinaryDoubleOp
-
op
public double op(double x, double y, boolean allowExtrapolation)- Specified by:
opin interfaceInterpolation2D
-
xMin
public double xMin()
- Specified by:
xMinin interfaceInterpolation2D
-
xMax
public double xMax()
- Specified by:
xMaxin interfaceInterpolation2D
-
yMin
public double yMin()
- Specified by:
yMinin interfaceInterpolation2D
-
yMax
public double yMax()
- Specified by:
yMaxin interfaceInterpolation2D
-
locateX
public int locateX(double x)
- Specified by:
locateXin interfaceInterpolation2D
-
locateY
public int locateY(double y)
- Specified by:
locateYin interfaceInterpolation2D
-
isInRange
public boolean isInRange(double x, double y)- Specified by:
isInRangein interfaceInterpolation2D
-
update
public void update()
- Specified by:
updatein interfaceInterpolation2D
-
allowsExtrapolation
public final boolean allowsExtrapolation()
Description copied from interface:Extrapolatortells whether extrapolation is enabled- Specified by:
allowsExtrapolationin interfaceExtrapolator
-
disableExtrapolation
public void disableExtrapolation()
Description copied from interface:Extrapolatordisable extrapolation in subsequent calls- Specified by:
disableExtrapolationin interfaceExtrapolator
-
enableExtrapolation
public void enableExtrapolation()
Description copied from interface:Extrapolatorenable extrapolation in subsequent calls- Specified by:
enableExtrapolationin interfaceExtrapolator
-
-
DataMelt 3.0 © DataMelt by jWork.ORG