Options
All
  • Public
  • Public/Protected
  • All
Menu

Derman-Kani-Ergener-Bardhan discretized option helper class

This class is used with the BinomialDoubleBarrierEngine to implement the enhanced binomial algorithm of E.Derman, I.Kani, D.Ergener, I.Bardhan ("Enhanced Numerical Methods for Options with Barriers", 1995)

note

This algorithm is only suitable if the payoff can be approximated linearly, e.g. is not usable for cash-or-nothing payoffs.

Hierarchy

Index

Properties

_isDisposed

_isDisposed: boolean = false

Protected _latestPostAdjustment

_latestPostAdjustment: Time = QL_MAX_REAL

Protected _latestPreAdjustment

_latestPreAdjustment: Time = QL_MAX_REAL

Protected _time

_time: Time

Private _unenhanced

Protected _values

_values: Real[] = []

Accessors

isDisposed

  • get isDisposed(): boolean

time

  • get time(): Time
  • set time(v: Time): void

values

  • get values(): Real[]
  • set values(v: Real[]): void

Methods

Private adjustBarrier

  • adjustBarrier(optvalues: Real[], grid: Real[]): void
  • Parameters

    Returns void

adjustValues

  • adjustValues(): void

ddInit

dispose

  • dispose(): void

init

initialize

  • name High-level interface

    Users of discretized assets should use these methods in order to initialize, evolve and take the present value of the assets. They call the corresponding methods in the Lattice interface, to which we refer for documentation.

    Parameters

    Returns void

Protected isOnTime

  • isOnTime(t: Time): boolean

mandatoryTimes

  • mandatoryTimes(): Time[]

method

partialRollback

  • partialRollback(to: Time): void

postAdjustValues

  • postAdjustValues(): void

postAdjustValuesImpl

  • postAdjustValuesImpl(): void

preAdjustValues

  • preAdjustValues(): void

preAdjustValuesImpl

  • preAdjustValuesImpl(): void

presentValue

  • presentValue(): Real

reset

  • reset(size: Size): void
  • Parameters

    Returns void

rollback

  • rollback(to: Time): void