org.jquantlib.math
Class SampledCurve
- java.lang.Object
-
- org.jquantlib.math.SampledCurve
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class SampledCurve extends java.lang.Object implements java.lang.CloneableThis class contains a sampled curve.Initially the class will contain one indexed curve
-
-
Constructor Summary
Constructors Constructor and Description SampledCurve(Array grid)SampledCurve(int gridSize)SampledCurve(SampledCurve that)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SampledCurveclone()doublefirstDerivativeAtCenter()Arraygrid()doublegridValue(int i)voidregrid(Array newGrid)voidregrid(Array newGrid, Ops.DoubleOp f)<T extends Ops.DoubleOp>
voidsample(T func)voidscaleGrid(double s)doublesecondDerivativeAtCenter()voidsetGrid(Array g)voidsetLogGrid(double min, double max)voidsetValues(Array array)voidshiftGrid(double s)intsize()SampledCurveswap(SampledCurve another)doublevalue(int i)doublevalueAtCenter()Arrayvalues()
-
-
-
Constructor Detail
-
SampledCurve
public SampledCurve(int gridSize)
-
SampledCurve
public SampledCurve(Array grid)
-
SampledCurve
public SampledCurve(SampledCurve that)
Copy constructor- Parameters:
that-
-
-
Method Detail
-
clone
public SampledCurve clone()
- Overrides:
clonein classjava.lang.Object
-
size
public int size()
-
swap
public SampledCurve swap(SampledCurve another)
-
grid
public Array grid()
-
values
public Array values()
-
gridValue
public double gridValue(int i)
-
value
public double value(int i)
-
setGrid
public void setGrid(Array g)
-
setValues
public void setValues(Array array)
-
setLogGrid
public void setLogGrid(double min, double max)
-
sample
public <T extends Ops.DoubleOp> void sample(T func)
-
shiftGrid
public void shiftGrid(double s)
-
scaleGrid
public void scaleGrid(double s)
-
valueAtCenter
public double valueAtCenter()
-
firstDerivativeAtCenter
public double firstDerivativeAtCenter()
-
secondDerivativeAtCenter
public double secondDerivativeAtCenter()
-
regrid
public void regrid(Array newGrid)
-
regrid
public void regrid(Array newGrid, Ops.DoubleOp f)
- Parameters:
newGrid-f-
-
-
DataMelt 3.0 © DataMelt by jWork.ORG