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/pricingengines/vanilla/fdstepconditionengine"
FDStepConditionEngine
Class FDStepConditionEngine
Finite-differences pricing engine for American-style vanilla options
Hierarchy
FDVanillaEngine
FDStepConditionEngine
Index
Type aliases
bc_
type
Constructors
constructor
Properties
Scheme
_BCs
_center
_controlBCs
_control
Operator
_control
Prices
_exercise
Date
_finite
Difference
Operator
_grid
Points
_intrinsic
Values
_payoff
_prices
_process
_s
Max
_s
Min
_step
Condition
_time
Dependent
_time
Steps
_safety
Zone
Factor
Methods
calculate2
ensure
Strike
InGrid
get
Residual
Time
grid
init
init1
initialize
Boundary
Conditions
initialize
Initial
Condition
initialize
Operator
initialize
Step
Condition
safe
Grid
Points
set
Grid
Limits1
set
Grid
Limits2
setup
Arguments
Type aliases
Static
bc_
type
bc_
type
:
BoundaryCondition
<
TridiagonalOperator
>
Constructors
constructor
new FDStep
Condition
Engine
(
Scheme
?:
any
)
:
FDStepConditionEngine
Parameters
Default value
Scheme:
any
= new CrankNicolson()
Returns
FDStepConditionEngine
Properties
Scheme
Scheme
:
any
_BCs
_BCs
:
bc_type
[]
_center
_center
:
Real
Protected
_controlBCs
_controlBCs
:
bc_type
[]
Protected
_control
Operator
_control
Operator
:
TridiagonalOperator
Protected
_control
Prices
_control
Prices
:
SampledCurve
_exercise
Date
_exercise
Date
:
Date
_finite
Difference
Operator
_finite
Difference
Operator
:
TridiagonalOperator
_grid
Points
_grid
Points
:
Size
_intrinsic
Values
_intrinsic
Values
:
SampledCurve
_payoff
_payoff
:
Payoff
Protected
_prices
_prices
:
SampledCurve
_process
_process
:
GeneralizedBlackScholesProcess
_s
Max
_s
Max
:
Real
_s
Min
_s
Min
:
Real
Protected
_step
Condition
_step
Condition
:
StandardStepCondition
_time
Dependent
_time
Dependent
:
boolean
_time
Steps
_time
Steps
:
Size
Static
_safety
Zone
Factor
_safety
Zone
Factor
:
Real
= 1.1
Methods
calculate2
calculate2
(
r
:
Results
, parent
?:
any
)
:
void
Parameters
r:
Results
Default value
parent:
any
= null
Returns
void
ensure
Strike
InGrid
ensure
Strike
InGrid
(
)
:
void
Returns
void
get
Residual
Time
get
Residual
Time
(
)
:
Time
Returns
Time
grid
grid
(
)
:
Real
[]
Returns
Real
[]
init
init
(
process
:
GeneralizedBlackScholesProcess
, timeSteps
:
Size
, gridPoints
:
Size
, timeDependent
?:
boolean
)
:
FDVanillaEngine
Parameters
process:
GeneralizedBlackScholesProcess
timeSteps:
Size
gridPoints:
Size
Default value
timeDependent:
boolean
= false
Returns
FDVanillaEngine
init1
init1
(
process
:
GeneralizedBlackScholesProcess
, timeSteps
?:
Size
, gridPoints
?:
Size
, timeDependent
?:
boolean
)
:
FDStepConditionEngine
Parameters
process:
GeneralizedBlackScholesProcess
Default value
timeSteps:
Size
= 100
Default value
gridPoints:
Size
= 100
Default value
timeDependent:
boolean
= false
Returns
FDStepConditionEngine
initialize
Boundary
Conditions
initialize
Boundary
Conditions
(
)
:
void
Returns
void
initialize
Initial
Condition
initialize
Initial
Condition
(
)
:
void
Returns
void
initialize
Operator
initialize
Operator
(
)
:
void
Returns
void
Protected
initialize
Step
Condition
initialize
Step
Condition
(
)
:
void
Returns
void
safe
Grid
Points
safe
Grid
Points
(
gridPoints
:
Size
, residualTime
:
Time
)
:
Size
Parameters
gridPoints:
Size
residualTime:
Time
Returns
Size
set
Grid
Limits1
set
Grid
Limits1
(
)
:
void
Returns
void
set
Grid
Limits2
set
Grid
Limits2
(
center
:
Real
, t
:
Time
)
:
void
Parameters
center:
Real
t:
Time
Returns
void
setup
Arguments
setup
Arguments
(
args
:
Arguments
)
:
void
Parameters
args:
Arguments
Returns
void
Globals
"ql/pricingengines/vanilla/fdstepconditionengine"
FDStep
Condition
Engine
bc_
type
constructor
Scheme
_BCs
_center
_controlBCs
_control
Operator
_control
Prices
_exercise
Date
_finite
Difference
Operator
_grid
Points
_intrinsic
Values
_payoff
_prices
_process
_s
Max
_s
Min
_step
Condition
_time
Dependent
_time
Steps
_safety
Zone
Factor
calculate2
ensure
Strike
InGrid
get
Residual
Time
grid
init
init1
initialize
Boundary
Conditions
initialize
Initial
Condition
initialize
Operator
initialize
Step
Condition
safe
Grid
Points
set
Grid
Limits1
set
Grid
Limits2
setup
Arguments
Finite-differences pricing engine for American-style vanilla options