|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ShapeFunction ShapeYield
ShapeYield -- Yield curve / bond term structure
Solution.discretize(ShapeFunction)
Field Summary |
Fields inherited from class ShapeFunction |
amplitude, curvature, position, slope, width |
Constructor Summary | |
ShapeYield(double strike,
double amp,
double deriv,
double curv)
Creates an instance of the class |
Method Summary | |
double |
getValue(double xa)
Evaluates the shape for a real argument |
double |
getValue(Mesh mesh,
double xa)
Evaluates the shape on a discrete mesh point position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeYield(double strike, double amp, double deriv, double curv)
strike
- The strike priceMethod Detail |
public double getValue(double xa)
getValue
in class ShapeFunction
xa
- The argument
public double getValue(Mesh mesh, double xa)
getValue
in class ShapeFunction
mesh
- The mesh coordinatesxa
- The argument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |