26#ifndef quantlib_binomial_tree_hpp
27#define quantlib_binomial_tree_hpp
45 :
Tree<
T>(steps+1),
x0_(process->x0()),
dt_(end/steps) {
52 return index + branch;
66 const ext::shared_ptr<StochasticProcess1D>& process,
87 const ext::shared_ptr<StochasticProcess1D>& process,
94 return this->
x0_*std::exp(j*this->
dx_);
97 return (branch == 1 ?
pu_ :
pd_);
108 JarrowRudd(
const ext::shared_ptr<StochasticProcess1D>&,
133 const ext::shared_ptr<StochasticProcess1D>&,
144 Trigeorgis(
const ext::shared_ptr<StochasticProcess1D>&,
155 Tian(
const ext::shared_ptr<StochasticProcess1D>&,
164 return (branch == 1 ?
pu_ :
pd_);
174 LeisenReimer(
const ext::shared_ptr<StochasticProcess1D>&,
183 return (branch == 1 ?
pu_ :
pd_);
192 Joshi4(
const ext::shared_ptr<StochasticProcess1D>&,
201 return (branch == 1 ?
pu_ :
pd_);
Additive equal probabilities binomial tree.
Binomial tree base class.
Size descendant(Size, Size index, Size branch) const
BinomialTree(const ext::shared_ptr< StochasticProcess1D > &process, Time end, Size steps)
Cox-Ross-Rubinstein (multiplicative) equal jumps binomial tree.
Base class for equal jumps binomial tree.
EqualJumpsBinomialTree(const ext::shared_ptr< StochasticProcess1D > &process, Time end, Size steps)
Real underlying(Size i, Size index) const
Real probability(Size, Size, Size branch) const
Base class for equal probabilities binomial tree.
EqualProbabilitiesBinomialTree(const ext::shared_ptr< StochasticProcess1D > &process, Time end, Size steps)
Real probability(Size, Size, Size) const
Real underlying(Size i, Size index) const
Jarrow-Rudd (multiplicative) equal probabilities binomial tree.
Real underlying(Size i, Size index) const
Real probability(Size, Size, Size branch) const
Real computeUpProb(Real k, Real dj) const
Leisen & Reimer tree: multiplicative approach.
Real underlying(Size i, Size index) const
Real probability(Size, Size, Size branch) const
Tian tree: third moment matching, multiplicative approach
Real underlying(Size i, Size index) const
Real probability(Size, Size, Size branch) const
Tree approximating a single-factor diffusion
Trigeorgis (additive equal jumps) binomial tree
Schedule of dividend dates.
Real Time
continuous quantity with 1-year units
QL_BIG_INTEGER BigInteger
large integer number
std::size_t Size
size of a container