QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Joshi4 Class Reference

#include <ql/methods/lattices/binomialtree.hpp>

+ Inheritance diagram for Joshi4:
+ Collaboration diagram for Joshi4:

Public Member Functions

 Joshi4 (const ext::shared_ptr< StochasticProcess1D > &, Time end, Size steps, Real strike)
 
Real underlying (Size i, Size index) const
 
Real probability (Size, Size, Size branch) const
 
- Public Member Functions inherited from BinomialTree< Joshi4 >
 BinomialTree (const ext::shared_ptr< StochasticProcess1D > &process, Time end, Size steps)
 
Size size (Size i) const
 
Size descendant (Size, Size index, Size branch) const
 
- Public Member Functions inherited from Tree< T >
 Tree (Size columns)
 
Size columns () const
 

Protected Member Functions

Real computeUpProb (Real k, Real dj) const
 
- Protected Member Functions inherited from CuriouslyRecurringTemplate< T >
 CuriouslyRecurringTemplate ()=default
 
 ~CuriouslyRecurringTemplate ()=default
 
T & impl ()
 
const T & impl () const
 

Protected Attributes

Real up_
 
Real down_
 
Real pu_
 
Real pd_
 
- Protected Attributes inherited from BinomialTree< Joshi4 >
Real x0_
 
Real driftPerStep_
 
Time dt_
 

Additional Inherited Members

- Public Types inherited from BinomialTree< Joshi4 >
enum  Branches
 

Detailed Description

Definition at line 190 of file binomialtree.hpp.

Constructor & Destructor Documentation

◆ Joshi4()

Joshi4 ( const ext::shared_ptr< StochasticProcess1D > &  process,
Time  end,
Size  steps,
Real  strike 
)

Definition at line 140 of file binomialtree.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ underlying()

Real underlying ( Size  i,
Size  index 
) const

Definition at line 196 of file binomialtree.hpp.

◆ probability()

Real probability ( Size  ,
Size  ,
Size  branch 
) const

Definition at line 200 of file binomialtree.hpp.

◆ computeUpProb()

Real computeUpProb ( Real  k,
Real  dj 
) const
protected

Definition at line 119 of file binomialtree.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ up_

Real up_
protected

Definition at line 205 of file binomialtree.hpp.

◆ down_

Real down_
protected

Definition at line 205 of file binomialtree.hpp.

◆ pu_

Real pu_
protected

Definition at line 205 of file binomialtree.hpp.

◆ pd_

Real pd_
protected

Definition at line 205 of file binomialtree.hpp.