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/models/shortrate/onefactormodel"
OneFactorModel
ShortRateTree
Class ShortRateTree
Hierarchy
TreeLattice1D
<
ShortRateTree
>
ShortRateTree
Implements
Lattice
CuriouslyRecurringTemplate
<
ShortRateTree
>
ITreeLattice
Index
Classes
Helper
Properties
_dynamics
_spread
_state
Prices
_t
_tree
impl
init
time
Grid
Methods
compute
State
Prices
descendant
discount
grid
init1D
initialize
partial
Rollback
present
Value
probability
rollback
set
Spread
size
srt
Init1
srt
Init2
state
Prices
stepback
tl
Init
underlying
Properties
Private
_dynamics
_dynamics
:
ShortRateDynamics
Private
_spread
_spread
:
Spread
Protected
_state
Prices
_state
Prices
:
Real
[]
[]
_t
_t
:
TimeGrid
Private
_tree
_tree
:
TrinomialTree
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
grid
grid
(
t
:
Time
)
:
Real
[]
Parameters
t:
Time
Returns
Real
[]
init1D
init1D
(
timeGrid
:
TimeGrid
, n
:
Size
)
:
TreeLattice1D
<
ShortRateTree
>
Parameters
timeGrid:
TimeGrid
n:
Size
Returns
TreeLattice1D
<
ShortRateTree
>
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
rollback
rollback
(
asset
:
DiscretizedAsset
, to
:
Time
)
:
void
Parameters
asset:
DiscretizedAsset
to:
Time
Returns
void
set
Spread
set
Spread
(
spread
:
Spread
)
:
void
Parameters
spread:
Spread
Returns
void
size
size
(
i
:
Size
)
:
Size
Parameters
i:
Size
Returns
Size
srt
Init1
srt
Init1
(
tree
:
TrinomialTree
, dynamics
:
ShortRateDynamics
, timeGrid
:
TimeGrid
)
:
ShortRateTree
Parameters
tree:
TrinomialTree
dynamics:
ShortRateDynamics
timeGrid:
TimeGrid
Returns
ShortRateTree
srt
Init2
srt
Init2
(
tree
:
TrinomialTree
, dynamics
:
ShortRateDynamics
, theta
:
NumericalImpl
, timeGrid
:
TimeGrid
)
:
ShortRateTree
Parameters
tree:
TrinomialTree
dynamics:
ShortRateDynamics
theta:
NumericalImpl
timeGrid:
TimeGrid
Returns
ShortRateTree
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
<
ShortRateTree
>
Parameters
timeGrid:
TimeGrid
n:
Size
Returns
TreeLattice
<
ShortRateTree
>
underlying
underlying
(
i
:
Size
, index
:
Size
)
:
Real
Parameters
i:
Size
index:
Size
Returns
Real
Globals
"ql/models/shortrate/onefactormodel"
One
Factor
Model
Short
Rate
Dynamics
Short
Rate
Tree
Helper
_dynamics
_spread
_state
Prices
_t
_tree
impl
init
time
Grid
compute
State
Prices
descendant
discount
grid
init1D
initialize
partial
Rollback
present
Value
probability
rollback
set
Spread
size
srt
Init1
srt
Init2
state
Prices
stepback
tl
Init
underlying
_arguments
_constraint
_function
Evaluation
_is
Disposed
_observables
_observers
_problem
Values
_short
Rate
End
Criteria
dispose
is
Disposed
notify
Observers
register
Observer
register
With
register
With
Observables
unregister
Observer
unregister
With
unregister
With
All
calibrate1
calibrate2
cm
Init
constraint
deep
Update
dynamics
end
Criteria
function
Evaluation
generate
Arguments
ofm
Init
params
problem
Values
set
Params
srm
Init
tree
update
value1
value2