Documentation of 'org.jquantlib.methods.lattices.TreeLattice' Java class
TreeLattice
org.jquantlib.methods.lattices

Class TreeLattice

  • Direct Known Subclasses:
    TreeLattice1D, TreeLattice2D


    public abstract class TreeLattice
    extends Lattice
    Tree-based lattice-method base class

    This 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 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)
      • stepback

        public void stepback(int i,
                             Array values,
                             Array newValues)
      • presentValue

        public double presentValue(DiscretizedAsset asset)
        Computes the present value of an asset using Arrow-Debrew prices
        Specified by:
        presentValue in class Lattice
      • rollback

        public void rollback(DiscretizedAsset asset,
                             double to)
        Description copied from class: Lattice
        Roll back an asset until the given time, performing any needed adjustment.
        Specified by:
        rollback in class Lattice
      • partialRollback

        public void partialRollback(DiscretizedAsset asset,
                                    double to)
        Description copied from class: Lattice
        Roll back an asset until the given time, but do not perform the final adjustment.

        Specified by:
        partialRollback in class Lattice

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.