Search
Preparing search index...
The search index is not available
quantlib.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ql/methods/lattices/bsmlattice"
BlackScholesLattice
Class BlackScholesLattice<T>
Simple binomial lattice approximating the Black-Scholes model
Type parameters
T
:
TreeLatticeImpl
Hierarchy
TreeLattice1D
<
BlackScholesLattice
<
T
>
>
BlackScholesLattice
TsiveriotisFernandesLattice
Implements
Lattice
CuriouslyRecurringTemplate
<
BlackScholesLattice
<
T
>
>
ITreeLattice
Index
Constructors
constructor
Properties
_discount
_dt
_pd
_pu
_risk
Free
Rate
_state
Prices
_t
_tree
impl
init
time
Grid
Methods
compute
State
Prices
descendant
discount
dt
grid
init1D
initialize
partial
Rollback
present
Value
probability
risk
Free
Rate
rollback
size
state
Prices
stepback
tl
Init
underlying
Constructors
constructor
new
Black
Scholes
Lattice
(
tree
:
T
, riskFreeRate
:
Rate
, end
:
Time
, steps
:
Size
)
:
BlackScholesLattice
Parameters
tree:
T
riskFreeRate:
Rate
end:
Time
steps:
Size
Returns
BlackScholesLattice
Properties
Protected
_discount
_discount
:
DiscountFactor
Protected
_dt
_dt
:
Time
Protected
_pd
_pd
:
Real
Protected
_pu
_pu
:
Real
Protected
_risk
Free
Rate
_risk
Free
Rate
:
Rate
Protected
_state
Prices
_state
Prices
:
Real
[]
[]
_t
_t
:
TimeGrid
Protected
_tree
_tree
:
T
impl
impl
:
(
)
=>
any
Type declaration
(
)
:
any
Returns
any
init
init
:
(
timeGrid
:
TimeGrid
)
=>
Lattice
Type declaration
(
timeGrid
:
TimeGrid
)
:
Lattice
Parameters
timeGrid:
TimeGrid
Returns
Lattice
time
Grid
time
Grid
:
(
)
=>
TimeGrid
Type declaration
(
)
:
TimeGrid
Returns
TimeGrid
Methods
Protected
compute
State
Prices
compute
State
Prices
(
until
:
Size
)
:
void
Parameters
until:
Size
Returns
void
descendant
descendant
(
i
:
Size
, index
:
Size
, branch
:
Size
)
:
Size
Parameters
i:
Size
index:
Size
branch:
Size
Returns
Size
discount
discount
(
i
:
Size
, index
:
Size
)
:
DiscountFactor
Parameters
i:
Size
index:
Size
Returns
DiscountFactor
dt
dt
(
)
:
Time
Returns
Time
grid
grid
(
t
:
Time
)
:
Real
[]
Parameters
t:
Time
Returns
Real
[]
init1D
init1D
(
timeGrid
:
TimeGrid
, n
:
Size
)
:
TreeLattice1D
<
BlackScholesLattice
<
T
>
>
Parameters
timeGrid:
TimeGrid
n:
Size
Returns
TreeLattice1D
<
BlackScholesLattice
<
T
>
>
initialize
initialize
(
asset
:
DiscretizedAsset
, t
:
Time
)
:
void
Parameters
asset:
DiscretizedAsset
t:
Time
Returns
void
partial
Rollback
partial
Rollback
(
asset
:
DiscretizedAsset
, to
:
Time
)
:
void
Parameters
asset:
DiscretizedAsset
to:
Time
Returns
void
present
Value
present
Value
(
asset
:
DiscretizedAsset
)
:
Real
Parameters
asset:
DiscretizedAsset
Returns
Real
probability
probability
(
i
:
Size
, index
:
Size
, branch
:
Size
)
:
Real
Parameters
i:
Size
index:
Size
branch:
Size
Returns
Real
risk
Free
Rate
risk
Free
Rate
(
)
:
Rate
Returns
Rate
rollback
rollback
(
asset
:
DiscretizedAsset
, to
:
Time
)
:
void
Parameters
asset:
DiscretizedAsset
to:
Time
Returns
void
size
size
(
i
:
Size
)
:
Size
Parameters
i:
Size
Returns
Size
state
Prices
state
Prices
(
i
:
Size
)
:
Real
[]
Parameters
i:
Size
Returns
Real
[]
stepback
stepback
(
i
:
Size
, values
:
Real
[]
, newValues
:
Real
[]
)
:
void
Parameters
i:
Size
values:
Real
[]
newValues:
Real
[]
Returns
void
tl
Init
tl
Init
(
timeGrid
:
TimeGrid
, n
:
Size
)
:
TreeLattice
<
BlackScholesLattice
<
T
>
>
Parameters
timeGrid:
TimeGrid
n:
Size
Returns
TreeLattice
<
BlackScholesLattice
<
T
>
>
underlying
underlying
(
i
:
Size
, index
:
Size
)
:
Real
Parameters
i:
Size
index:
Size
Returns
Real
Globals
"ql/methods/lattices/bsmlattice"
Black
Scholes
Lattice
constructor
_discount
_dt
_pd
_pu
_risk
Free
Rate
_state
Prices
_t
_tree
impl
init
time
Grid
compute
State
Prices
descendant
discount
dt
grid
init1D
initialize
partial
Rollback
present
Value
probability
risk
Free
Rate
rollback
size
state
Prices
stepback
tl
Init
underlying
Simple binomial lattice approximating the Black-Scholes model