|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectShapeFunction
ShapeCall
ShapeCall -- Payoff function for a call option at expiry
Solution.discretize(ShapeFunction)| Field Summary |
| Fields inherited from class ShapeFunction |
amplitude, curvature, position, slope, width |
| Constructor Summary | |
ShapeCall(double strike)
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 ShapeCall(double strike)
strike - The strike price| Method Detail |
public double getValue(double xa)
getValue in class ShapeFunctionxa - The argument
public double getValue(Mesh mesh,
double xa)
getValue in class ShapeFunctionmesh - The mesh coordinatesxa - The argument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||