|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.finance.options.exotic.Dirichlet
When providing a custom Dirichlet type boundary, the user can extend this
class instead of implementing DirichletBoundaries directly, as there is
no need to implement each time the type method which always
returns BT_DIRICHLET.
| Constructor Summary | |
Dirichlet()
|
|
| Method Summary | |
abstract double |
getValueAt(double t,
int i,
boolean i_max,
double[] not_fixed_x,
int m)
Returns the value of the option on the boundary. |
int |
type()
Returns the type of the boundary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Dirichlet()
throws Exception
| Method Detail |
public final int type()
Boundaries
type in interface Boundaries
public abstract double getValueAt(double t,
int i,
boolean i_max,
double[] not_fixed_x,
int m)
getValueAt in interface DirichletBoundariest - the timei - the index of the asset with fixed price. Counting begins with 0.i_max - if true the method returns the value on the high boundary, otherwise it returns the value on the
low boundary.not_fixed_x - - a vector with m - 1 components - the prices of the remaining (not fixed)
assets. It represents a point in the m - 1 dimensional space which represents the boundary.
(a plane in the m diminsional space). Obs.: if m is 1 (one spatial coordinate <=> unidimensional
<=> uni-asset) then the vector has 0 elements. In this case it will not be used
to compute the result.m - - the number of assets (equal to the number of spatial dimensions).
|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||