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/experimental/convertiblebonds/tflattice"
TsiveriotisFernandesLattice
Class TsiveriotisFernandesLattice<T>
Binomial lattice approximating the Tsiveriotis-Fernandes model
Type parameters
T
:
TreeLatticeImpl
Hierarchy
BlackScholesLattice
<
T
>
TsiveriotisFernandesLattice
Implements
Lattice
CuriouslyRecurringTemplate
<
BlackScholesLattice
<
T
>
>
ITreeLattice
Index
Constructors
constructor
Properties
_credit
Spread
_discount
_dt
_pd
_pu
_risk
Free
Rate
_state
Prices
_t
_tree
impl
init
time
Grid
Methods
compute
State
Prices
credit
Spread
descendant
discount
dt
grid
init1D
initialize
partial
Rollback
present
Value
probability
risk
Free
Rate
rollback
size
state
Prices
stepback
stepback2
tl
Init
underlying
Constructors
constructor
new
Tsiveriotis
Fernandes
Lattice
(
tree
:
T
, riskFreeRate
:
Rate
, end
:
Time
, steps
:
Size
, creditSpread
:
Spread
, volatility
:
Volatility
, divYield
:
Spread
)
:
TsiveriotisFernandesLattice
Parameters
tree:
T
riskFreeRate:
Rate
end:
Time
steps:
Size
creditSpread:
Spread
volatility:
Volatility
divYield:
Spread
Returns
TsiveriotisFernandesLattice
Properties
Private
_credit
Spread
_credit
Spread
:
Spread
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
credit
Spread
credit
Spread
(
)
:
Spread
Returns
Spread
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
Protected
stepback2
stepback2
(
i
:
Size
, values
:
Real
[]
, conversionProbability
:
Real
[]
, spreadAdjustedRate
:
Real
[]
, newValues
:
Real
[]
, newConversionProbability
:
Real
[]
, newSpreadAdjustedRate
:
Real
[]
)
:
void
Parameters
i:
Size
values:
Real
[]
conversionProbability:
Real
[]
spreadAdjustedRate:
Real
[]
newValues:
Real
[]
newConversionProbability:
Real
[]
newSpreadAdjustedRate:
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/experimental/convertiblebonds/tflattice"
Tsiveriotis
Fernandes
Lattice
constructor
_credit
Spread
_discount
_dt
_pd
_pu
_risk
Free
Rate
_state
Prices
_t
_tree
impl
init
time
Grid
compute
State
Prices
credit
Spread
descendant
discount
dt
grid
init1D
initialize
partial
Rollback
present
Value
probability
risk
Free
Rate
rollback
size
state
Prices
stepback
stepback2
tl
Init
underlying
Binomial lattice approximating the Tsiveriotis-Fernandes model