Options
All
  • Public
  • Public/Protected
  • All
Menu

Finite-differences pricing engine for American-style vanilla options

Hierarchy

Index

Type aliases

Static bc_type

Constructors

constructor

  • 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 _controlOperator

_controlOperator: TridiagonalOperator

Protected _controlPrices

_controlPrices: SampledCurve

_exerciseDate

_exerciseDate: Date

_finiteDifferenceOperator

_finiteDifferenceOperator: TridiagonalOperator

_gridPoints

_gridPoints: Size

_intrinsicValues

_intrinsicValues: SampledCurve

_payoff

_payoff: Payoff

Protected _prices

_prices: SampledCurve

_process

_sMax

_sMax: Real

_sMin

_sMin: Real

Protected _stepCondition

_stepCondition: StandardStepCondition

_timeDependent

_timeDependent: boolean

_timeSteps

_timeSteps: Size

Static _safetyZoneFactor

_safetyZoneFactor: Real = 1.1

Methods

calculate2

  • calculate2(r: Results, parent?: any): void
  • Parameters

    • r: Results
    • Default value parent: any = null

    Returns void

ensureStrikeInGrid

  • ensureStrikeInGrid(): void

getResidualTime

  • getResidualTime(): Time

grid

init

init1

initializeBoundaryConditions

  • initializeBoundaryConditions(): void

initializeInitialCondition

  • initializeInitialCondition(): void

initializeOperator

  • initializeOperator(): void

Protected initializeStepCondition

  • initializeStepCondition(): void
  • Returns void

safeGridPoints

  • safeGridPoints(gridPoints: Size, residualTime: Time): Size

setGridLimits1

  • setGridLimits1(): void

setGridLimits2

  • setGridLimits2(center: Real, t: Time): void

setupArguments