org.jquantlib.methods.lattices
Class BlackScholesLattice<T extends Tree>
- java.lang.Object
-
- org.jquantlib.methods.lattices.Lattice
-
- org.jquantlib.methods.lattices.TreeLattice
-
- org.jquantlib.methods.lattices.TreeLattice1D
-
- org.jquantlib.methods.lattices.BlackScholesLattice<T>
-
- Direct Known Subclasses:
- TsiveriotisFernandesLattice
public class BlackScholesLattice<T extends Tree> extends TreeLattice1D
Simple binomial lattice approximating the Black-Scholes model
-
-
Constructor Summary
Constructors Constructor and Description BlackScholesLattice(T tree, double riskFreeRate, double end, int steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intdescendant(int i, int index, int branch)doublediscount(int a, int b)doubleprobability(int i, int index, int branch)intsize(int i)voidstepback(int i, Array values, Array newValues)doubleunderlying(int i, int index)-
Methods inherited from class org.jquantlib.methods.lattices.TreeLattice1D
grid
-
Methods inherited from class org.jquantlib.methods.lattices.TreeLattice
initialize, partialRollback, presentValue, rollback, statePrices
-
-
-
-
Constructor Detail
-
BlackScholesLattice
public BlackScholesLattice(T tree, double riskFreeRate, double end, int steps)
-
-
Method Detail
-
size
public int size(int i)
- Specified by:
sizein classTreeLattice
-
discount
public double discount(int a, int b)- Specified by:
discountin classTreeLattice
-
underlying
public double underlying(int i, int index)- Specified by:
underlyingin classTreeLattice1D
-
descendant
public int descendant(int i, int index, int branch)- Specified by:
descendantin classTreeLattice
-
probability
public double probability(int i, int index, int branch)- Specified by:
probabilityin classTreeLattice
-
stepback
public void stepback(int i, Array values, Array newValues)- Overrides:
stepbackin classTreeLattice
-
-
DataMelt 3.0 © DataMelt by jWork.ORG