Options
All
  • Public
  • Public/Protected
  • All
Menu

Analytic engine for European Margrabe option

This class implements formulae from "The Value of an Option to Exchange One Asset for Another", W. Margrabe, Journal of Finance, 33 (March 1978), 177-186.

test

the correctness of the returned value is tested by reproducing results available in literature.

Hierarchy

  • engine
    • AnalyticEuropeanMargrabeEngine

Implements

Index

Constructors

constructor

Properties

_arguments

_arguments: Arguments

_isDisposed

_isDisposed: boolean = false

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

Private _process1

Private _process2

_results

_results: Results

Private _rho

_rho: Real

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

getArguments

  • getArguments(): Arguments

getResults

  • getResults(): Results

reset

  • reset(): void

update

  • update(): void