Options
All
  • Public
  • Public/Protected
  • All
Menu

Finite-Differences Heston Vanilla Option engine

test

the correctness of the returned value is tested by reproducing results available in web/literature and comparison with Black pricing.

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    • model: HestonModel
    • Default value tGrid: number = 100
    • Default value xGrid: number = 100
    • Default value vGrid: number = 50
    • Default value dampingSteps: number = 0
    • Default value schemeDesc: FdmSchemeDesc = FdmSchemeDesc.Hundsdorfer()
    • Default value leverageFct: LocalVolTermStructure = null

    Returns FdHestonVanillaEngine

Properties

_arguments

_arguments: Arguments

Private _cachedArgs2results

_cachedArgs2results: Array<[Arguments, Results]> = []

Private _dampingSteps

_dampingSteps: Size

_isDisposed

_isDisposed: boolean = false

Private _leverageFct

_leverageFct: LocalVolTermStructure

_model

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

_results

_results: Results

Private _schemeDesc

_schemeDesc: FdmSchemeDesc

Private _strikes

_strikes: Real[]

Private _tGrid

_tGrid: Size

Private _vGrid

_vGrid: Size

Private _xGrid

_xGrid: Size

deepUpdate

deepUpdate: () => void

Type declaration

    • (): void
    • Returns void

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

isDisposed

isDisposed: boolean

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

registerObserver

registerObserver: (o: Observer) => void

Type declaration

registerWith

registerWith: (h: Observable) => void

Type declaration

registerWithObservables

registerWithObservables: (o: Observer) => void

Type declaration

unregisterObserver

unregisterObserver: (o: Observer) => void

Type declaration

unregisterWith

unregisterWith: (h: Observable) => Size

Type declaration

unregisterWithAll

unregisterWithAll: () => void

Type declaration

    • (): void
    • Returns void

Methods

calculate

  • calculate(): void

enableMultipleStrikesCaching

  • enableMultipleStrikesCaching(strikes: Real[]): void
  • Parameters

    Returns void

getArguments

getResults

getSolverDesc

  • Parameters

    • equityScaleFactor: Real

    Returns FdmSolverDesc

init1

init2

reset

  • reset(): void

update

  • update(): void
  • Returns void