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/volatility/noarbsabrsmilesection"
NoArbSabrSmileSection
Class NoArbSabrSmileSection
Hierarchy
SmileSection
NoArbSabrSmileSection
Implements
Observer
Observable
Index
Properties
_dc
_exercise
Date
_exercise
Time
_forward
_is
Disposed
_is
Floating
_model
_observables
_observers
_params
_reference
Date
_shift
_volatility
Type
dispose
is
Disposed
notify
Observers
register
Observer
register
With
register
With
Observables
unregister
Observer
unregister
With
unregister
With
All
Methods
atm
Level
day
Counter
deep
Update
density
digital
Option
Price
exercise
Date
exercise
Time
init
init1
init2
initialize
Exercise
Time
max
Strike
min
Strike
model
nasss
Init1
nasss
Init2
option
Price
reference
Date
shift
update
variance
variance
Impl
vega
volatility1
volatility2
volatility
Impl
volatility
Type
Properties
_dc
_dc
:
DayCounter
_exercise
Date
_exercise
Date
:
Date
_exercise
Time
_exercise
Time
:
Time
Private
_forward
_forward
:
Rate
_is
Disposed
_is
Disposed
:
boolean
= false
_is
Floating
_is
Floating
:
boolean
Private
_model
_model
:
NoArbSabrModel
_observables
_observables
:
Set
<
Observable
>
= new Set()
_observers
_observers
:
Set
<
Observer
>
= new Set()
Private
_params
_params
:
Real
[]
_reference
Date
_reference
Date
:
Date
_shift
_shift
:
Rate
_volatility
Type
_volatility
Type
:
VolatilityType
dispose
dispose
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
is
Disposed
is
Disposed
:
boolean
notify
Observers
notify
Observers
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
register
Observer
register
Observer
:
(
o
:
Observer
)
=>
void
Type declaration
(
o
:
Observer
)
:
void
Parameters
o:
Observer
Returns
void
register
With
register
With
:
(
h
:
Observable
)
=>
void
Type declaration
(
h
:
Observable
)
:
void
Parameters
h:
Observable
Returns
void
register
With
Observables
register
With
Observables
:
(
o
:
Observer
)
=>
void
Type declaration
(
o
:
Observer
)
:
void
Parameters
o:
Observer
Returns
void
unregister
Observer
unregister
Observer
:
(
o
:
Observer
)
=>
void
Type declaration
(
o
:
Observer
)
:
void
Parameters
o:
Observer
Returns
void
unregister
With
unregister
With
:
(
h
:
Observable
)
=>
Size
Type declaration
(
h
:
Observable
)
:
Size
Parameters
h:
Observable
Returns
Size
unregister
With
All
unregister
With
All
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
Methods
atm
Level
atm
Level
(
)
:
Real
Returns
Real
day
Counter
day
Counter
(
)
:
DayCounter
Returns
DayCounter
deep
Update
deep
Update
(
)
:
void
Returns
void
density
density
(
strike
:
Rate
, discount
?:
Real
, gap
?:
Real
)
:
Real
Parameters
strike:
Rate
Default value
discount:
Real
= 1
Default value
gap:
Real
= 0.0001
Returns
Real
digital
Option
Price
digital
Option
Price
(
strike
:
Rate
, type
?:
Type
, discount
?:
Real
, gap
?:
Real
)
:
Real
Parameters
strike:
Rate
Default value
type:
Type
= Option.Type.Call
Default value
discount:
Real
= 1
Default value
gap:
Real
= 0.00001
Returns
Real
exercise
Date
exercise
Date
(
)
:
Date
Returns
Date
exercise
Time
exercise
Time
(
)
:
Time
Returns
Time
Private
init
init
(
)
:
void
Returns
void
init1
init1
(
d
:
Date
, dc
?:
DayCounter
, referenceDate
?:
Date
, type
?:
VolatilityType
, shift
?:
Rate
)
:
SmileSection
Parameters
d:
Date
Default value
dc:
DayCounter
= new DayCounter()
Default value
referenceDate:
Date
= null
Default value
type:
VolatilityType
= VolatilityType.ShiftedLognormal
Default value
shift:
Rate
= 0
Returns
SmileSection
init2
init2
(
exerciseTime
:
Time
, dc
?:
DayCounter
, type
?:
VolatilityType
, shift
?:
Rate
)
:
SmileSection
Parameters
exerciseTime:
Time
Default value
dc:
DayCounter
= new DayCounter()
Default value
type:
VolatilityType
= VolatilityType.ShiftedLognormal
Default value
shift:
Rate
= 0
Returns
SmileSection
initialize
Exercise
Time
initialize
Exercise
Time
(
)
:
void
Returns
void
max
Strike
max
Strike
(
)
:
Real
Returns
Real
min
Strike
min
Strike
(
)
:
Real
Returns
Real
model
model
(
)
:
NoArbSabrModel
Returns
NoArbSabrModel
nasss
Init1
nasss
Init1
(
timeToExpiry
:
Time
, forward
:
Rate
, sabrParameters
:
Real
[]
, shift
?:
Real
)
:
NoArbSabrSmileSection
Parameters
timeToExpiry:
Time
forward:
Rate
sabrParameters:
Real
[]
Default value
shift:
Real
= 0
Returns
NoArbSabrSmileSection
nasss
Init2
nasss
Init2
(
d
:
Date
, forward
:
Rate
, sabrParameters
:
Real
[]
, dc
?:
DayCounter
, shift
?:
Real
)
:
NoArbSabrSmileSection
Parameters
d:
Date
forward:
Rate
sabrParameters:
Real
[]
Default value
dc:
DayCounter
= new Actual365Fixed()
Default value
shift:
Real
= 0
Returns
NoArbSabrSmileSection
option
Price
option
Price
(
strike
:
Rate
, type
?:
Type
, discount
?:
Real
)
:
Real
Parameters
strike:
Rate
Default value
type:
Type
= Option.Type.Call
Default value
discount:
Real
= 1
Returns
Real
reference
Date
reference
Date
(
)
:
Date
Returns
Date
shift
shift
(
)
:
Rate
Returns
Rate
update
update
(
)
:
void
Returns
void
variance
variance
(
strike
:
Rate
)
:
Real
Parameters
strike:
Rate
Returns
Real
variance
Impl
variance
Impl
(
strike
:
Rate
)
:
Real
Parameters
strike:
Rate
Returns
Real
vega
vega
(
strike
:
Rate
, discount
?:
Real
)
:
Real
Parameters
strike:
Rate
Default value
discount:
Real
= 1
Returns
Real
volatility1
volatility1
(
strike
:
Rate
)
:
Volatility
Parameters
strike:
Rate
Returns
Volatility
volatility2
volatility2
(
strike
:
Rate
, volatilityType
:
VolatilityType
, shift
?:
Real
)
:
Volatility
Parameters
strike:
Rate
volatilityType:
VolatilityType
Default value
shift:
Real
= 0
Returns
Volatility
volatility
Impl
volatility
Impl
(
strike
:
Rate
)
:
Volatility
Parameters
strike:
Rate
Returns
Volatility
volatility
Type
volatility
Type
(
)
:
VolatilityType
Returns
VolatilityType
Globals
"ql/experimental/volatility/noarbsabrsmilesection"
No
Arb
Sabr
Smile
Section
_dc
_exercise
Date
_exercise
Time
_forward
_is
Disposed
_is
Floating
_model
_observables
_observers
_params
_reference
Date
_shift
_volatility
Type
dispose
is
Disposed
notify
Observers
register
Observer
register
With
register
With
Observables
unregister
Observer
unregister
With
unregister
With
All
atm
Level
day
Counter
deep
Update
density
digital
Option
Price
exercise
Date
exercise
Time
init
init1
init2
initialize
Exercise
Time
max
Strike
min
Strike
model
nasss
Init1
nasss
Init2
option
Price
reference
Date
shift
update
variance
variance
Impl
vega
volatility1
volatility2
volatility
Impl
volatility
Type