org.jquantlib.methods.lattices
Class Lattice
- java.lang.Object
-
- org.jquantlib.methods.lattices.Lattice
-
- Direct Known Subclasses:
- TreeLattice
public abstract class Lattice extends java.lang.ObjectLattice (tree, finite-differences) base class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract Arraygrid(double t)This is smelly, but we need it.abstract voidinitialize(DiscretizedAsset asset, double time)initialize an asset at the given time.abstract voidpartialRollback(DiscretizedAsset asset, double to)Roll back an asset until the given time, but do not perform the final adjustment.abstract doublepresentValue(DiscretizedAsset asset)computes the present value of an asset.abstract voidrollback(DiscretizedAsset asset, double to)Roll back an asset until the given time, performing any needed adjustment.TimeGridtimeGrid()
-
-
-
Constructor Detail
-
Lattice
public Lattice(TimeGrid t)
-
-
Method Detail
-
timeGrid
public TimeGrid timeGrid()
-
initialize
public abstract void initialize(DiscretizedAsset asset, double time)
initialize an asset at the given time.
-
rollback
public abstract void rollback(DiscretizedAsset asset, double to)
Roll back an asset until the given time, performing any needed adjustment.
-
partialRollback
public abstract void partialRollback(DiscretizedAsset asset, double to)
Roll back an asset until the given time, but do not perform the final adjustment.
-
presentValue
public abstract double presentValue(DiscretizedAsset asset)
computes the present value of an asset.
-
grid
public abstract Array grid(double t)
This is smelly, but we need it. We'll rethink it later.- Parameters:
t-- Returns:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG