Options
All
  • Public
  • Public/Protected
  • All
Menu

Vasicek model class

This class implements the Vasicek model defined by $$ dr_t = a(b - r_t)dt + \sigma dW_t , $$ where $ a $, $ b $ and $ \sigma $ are constants; a risk premium $ \lambda $ can also be specified.

Hierarchy

Implements

Implemented by

Index

Properties

_a

_arguments

_arguments: Parameter[]

_b

_constraint

_constraint: Constraint

_functionEvaluation

_functionEvaluation: Integer

_isDisposed

_isDisposed: boolean = false

_lambda

_lambda: Parameter

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

_problemValues

_problemValues: Real[]

_r0

_r0: Real

_shortRateEndCriteria

_shortRateEndCriteria: Type

_sigma

_sigma: Parameter

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

generateArguments

generateArguments: () => void

Type declaration

    • (): void
    • Returns void

isDisposed

isDisposed: boolean

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

ofmInit

ofmInit: (nArguments: Size) => OneFactorModel

Type declaration

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

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

B

a

  • Returns Real

b

  • Returns Real

discount

discountBond1

discountBond2

discountBondOption1

dynamics

lambda

  • Returns Real

ofamInit

sigma

  • Returns Real

tree

update

  • update(): void

vInit

  • Parameters

    • Default value r0: Rate = 0.05
    • Default value a: Real = 0.1
    • Default value b: Real = 0.05
    • Default value sigma: Real = 0.01
    • Default value lambda: Real = 0

    Returns Vasicek