Options
All
  • Public
  • Public/Protected
  • All
Menu

Standard discretized option helper class

This class is used with the BinomialDoubleBarrierEngine to implement a standard binomial algorithm for double barrier options

Hierarchy

Index

Properties

Private _arguments

_arguments: Arguments

_isDisposed

_isDisposed: boolean = false

Protected _latestPostAdjustment

_latestPostAdjustment: Time = QL_MAX_REAL

Protected _latestPreAdjustment

_latestPreAdjustment: Time = QL_MAX_REAL

Private _stoppingTimes

_stoppingTimes: Time[]

Protected _time

_time: Time

Protected _values

_values: Real[] = []

Private _vanilla

Accessors

isDisposed

  • get isDisposed(): boolean

time

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

values

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

Methods

adjustValues

  • adjustValues(): void

arguments

  • Returns Arguments

checkBarrier

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

    Returns 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

vanilla

  • Returns Real[]