Options
All
  • Public
  • Public/Protected
  • All
Menu

Two-additive-factor gaussian model class.

This class implements a two-additive-factor model defined by $$ dr_t = \varphi(t) + x_t + y_t $$ where $ x_t $ and $ y_t $ are defined by $$ dx_t = -a x_t dt + \sigma dW^1_t, x_0 = 0 $$ $$ dy_t = -b y_t dt + \sigma dW^2_t, y_0 = 0 $$ and $ dW^1_t dW^2_t = \rho dt $.

bug This class was not tested enough to guarantee its functionality.

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    Returns G2

Properties

Private _a

_arguments

_arguments: Parameter[]

Private _b

_constraint

_constraint: Constraint

Private _eta

_eta: Parameter

_functionEvaluation

_functionEvaluation: Integer

_isDisposed

_isDisposed: boolean = false

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

Private _phi

_phi: Parameter

_problemValues

_problemValues: Real[]

Private _rho

_rho: Parameter

_shortRateEndCriteria

_shortRateEndCriteria: Type

Private _sigma

_sigma: Parameter

_termStructure

_termStructure: Handle<YieldTermStructure>

calibrate1

calibrate1: (instruments: CalibrationHelperBase[], method: OptimizationMethod, endCriteria: EndCriteria, additionalConstraint?: Constraint, weights?: Real[], fixParameters?: boolean[]) => void

Type declaration

calibrate2

calibrate2: (instruments: BlackCalibrationHelper[], method: OptimizationMethod, endCriteria: EndCriteria, additionalConstraint?: Constraint, weights?: Real[], fixParameters?: boolean[]) => void

Type declaration

cmInit

cmInit: (nArguments: Size) => CalibratedModel

Type declaration

constraint

constraint: () => Constraint

Type declaration

deepUpdate

deepUpdate: () => void

Type declaration

    • (): void
    • Returns void

discountBondOption2

discountBondOption2: (type: Type, strike: Real, maturity: Time, bondStart: Time, bondMaturity: Time) => Real

Type declaration

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

endCriteria

endCriteria: () => Type

Type declaration

functionEvaluation

functionEvaluation: () => Integer

Type declaration

isDisposed

isDisposed: boolean

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

params

params: () => Real[]

Type declaration

problemValues

problemValues: () => Real[]

Type declaration

registerObserver

registerObserver: (o: Observer) => void

Type declaration

registerWith

registerWith: (h: Observable) => void

Type declaration

registerWithObservables

registerWithObservables: (o: Observer) => void

Type declaration

setParams

setParams: (params: Real[]) => void

Type declaration

    • (params: Real[]): void
    • Parameters

      Returns void

srmInit

srmInit: (nArguments: Size) => ShortRateModel

Type declaration

tcmInit

Type declaration

termStructure

termStructure: () => Handle<YieldTermStructure>

Type declaration

tfmInit

tfmInit: (nParams: Size) => TwoFactorModel

Type declaration

tree

tree: (grid: TimeGrid) => Lattice

Type declaration

unregisterObserver

unregisterObserver: (o: Observer) => void

Type declaration

unregisterWith

unregisterWith: (h: Observable) => Size

Type declaration

unregisterWithAll

unregisterWithAll: () => void

Type declaration

    • (): void
    • Returns void

value1

value1: (params: Real[], instruments: CalibrationHelperBase[]) => Real

Type declaration

value2

value2: (params: Real[], instruments: BlackCalibrationHelper[]) => Real

Type declaration

Methods

A

  • Parameters

    Returns Real

B

  • Parameters

    Returns Real

V

  • Parameters

    Returns Real

a

  • Returns Real

b

  • Returns Real

discount

discountBond1

discountBond2

  • Parameters

    Returns Real

discountBondOption1

dynamics

eta

  • Returns Real

generateArguments

  • generateArguments(): void

rho

  • Returns Real

sigma

  • Returns Real

sigmaP

  • Parameters

    Returns Real

swaption

  • Parameters

    Returns Real

update

  • update(): void