|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectShapeFunction
ShapeSpread
ShapeSpread -- Payoff function for a spread option at expiry
Solution.discretize(ShapeFunction)| Field Summary |
| Fields inherited from class ShapeFunction |
amplitude, curvature, position, slope, width |
| Constructor Summary | |
ShapeSpread(double position,
double amplitude,
double width)
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 ShapeSpread(double position,
double amplitude,
double width)
position - The starting pointamplitude - The offsetwidth - The width| 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 | |||||||||