org.jquantlib.methods.lattices
Class TreeLattice
- java.lang.Object
-
- org.jquantlib.methods.lattices.Lattice
-
- org.jquantlib.methods.lattices.TreeLattice
-
- Direct Known Subclasses:
- TreeLattice1D, TreeLattice2D
public abstract class TreeLattice extends Lattice
Tree-based lattice-method base classThis class defines a lattice method that is able to rollback (with discount) a discretized asset object. It will be based on one or more trees.
-
-
Constructor Summary
Constructors Constructor and Description TreeLattice(TimeGrid t, int n)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract intdescendant(int i, int index, int branch)abstract doublediscount(int i, int index)voidinitialize(DiscretizedAsset asset, double ti)initialize an asset at the given time.voidpartialRollback(DiscretizedAsset asset, double to)Roll back an asset until the given time, but do not perform the final adjustment.doublepresentValue(DiscretizedAsset asset)Computes the present value of an asset using Arrow-Debrew pricesabstract doubleprobability(int i, int index, int branch)voidrollback(DiscretizedAsset asset, double to)Roll back an asset until the given time, performing any needed adjustment.abstract intsize(int i)ArraystatePrices(int i)voidstepback(int i, Array values, Array newValues)
-
-
-
Constructor Detail
-
TreeLattice
public TreeLattice(TimeGrid t, int n)
-
-
Method Detail
-
discount
public abstract double discount(int i, int index)
-
descendant
public abstract int descendant(int i, int index, int branch)
-
probability
public abstract double probability(int i, int index, int branch)
-
size
public abstract int size(int i)
-
statePrices
public Array statePrices(int i)
-
presentValue
public double presentValue(DiscretizedAsset asset)
Computes the present value of an asset using Arrow-Debrew prices- Specified by:
presentValuein classLattice
-
initialize
public void initialize(DiscretizedAsset asset, double ti)
Description copied from class:Latticeinitialize an asset at the given time.- Specified by:
initializein classLattice
-
rollback
public void rollback(DiscretizedAsset asset, double to)
Description copied from class:LatticeRoll back an asset until the given time, performing any needed adjustment.
-
partialRollback
public void partialRollback(DiscretizedAsset asset, double to)
Description copied from class:LatticeRoll back an asset until the given time, but do not perform the final adjustment.- Specified by:
partialRollbackin classLattice
-
-
DataMelt 3.0 © DataMelt by jWork.ORG