org.jquantlib.methods.lattices
Class TrinomialTree
- java.lang.Object
-
- org.jquantlib.methods.lattices.Tree
-
- org.jquantlib.methods.lattices.TrinomialTree
-
public class TrinomialTree extends Tree
Recombining trinomial tree classThis class defines a recombining trinomial tree approximating a 1-D stochastic process.
-
-
Field Summary
Fields Modifier and Type Field and Description static org.jquantlib.methods.lattices.Tree.Branchesbranches
-
Constructor Summary
Constructors Constructor and Description TrinomialTree(StochasticProcess1D process, TimeGrid timeGrid)TrinomialTree(StochasticProcess1D process, TimeGrid timeGrid, boolean isPositive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intdescendant(int i, int index, int branch)doubledx(int i)doubleprobability(int i, int index, int branch)intsize(int i)TimeGridtimeGrid()doubleunderlying(int i, int index)
-
-
-
Constructor Detail
-
TrinomialTree
public TrinomialTree(StochasticProcess1D process, TimeGrid timeGrid)
-
TrinomialTree
public TrinomialTree(StochasticProcess1D process, TimeGrid timeGrid, boolean isPositive)
-
-
Method Detail
-
dx
public double dx(int i)
-
timeGrid
public TimeGrid timeGrid()
-
underlying
public double underlying(int i, int index)- Specified by:
underlyingin classTree
-
descendant
public int descendant(int i, int index, int branch)- Specified by:
descendantin classTree
-
probability
public double probability(int i, int index, int branch)- Specified by:
probabilityin classTree
-
-
DataMelt 3.0 © DataMelt by jWork.ORG