Options
All
  • Public
  • Public/Protected
  • All
Menu

Curve state for Libor market models

This class stores the state of the yield curve associated to the fixed calendar times within the simulation. This is the workhorse discounting object associated to the rate times of the simulation. It's important to pass the rates via an object like this to the product rather than directly to make it easier to switch to other engines such as a coterminal swap rate engine. Many products will not need expired rates and others will only require the first rate.

Hierarchy

Index

Constructors

constructor

Properties

Private _cmSwapAnnuities

_cmSwapAnnuities: Real[]

Private _cmSwapRates

_cmSwapRates: Rate[]

Private _cotAnnuities

_cotAnnuities: Real[]

Private _cotSwapRates

_cotSwapRates: Rate[]

Private _discRatios

_discRatios: DiscountFactor[]

Private _first

_first: Size

Private _firstCotAnnuityComped

_firstCotAnnuityComped: Size

Private _forwardRates

_forwardRates: Rate[]

Protected _numberOfRates

_numberOfRates: Size

Protected _rateTaus

_rateTaus: Time[]

Protected _rateTimes

_rateTimes: Time[]

Methods

clone

cmSwapAnnuity

cmSwapRate

cmSwapRates

  • cmSwapRates(spanningForwards: Size): Rate[]
  • Parameters

    • spanningForwards: Size

    Returns Rate[]

coterminalSwapAnnuity

coterminalSwapRate

coterminalSwapRates

  • coterminalSwapRates(): Rate[]

discountRatio

forwardRate

forwardRates

  • forwardRates(): Rate[]

numberOfRates

  • numberOfRates(): Size

rateTaus

  • rateTaus(): Time[]

rateTimes

  • rateTimes(): Time[]

setOnDiscountRatios

  • setOnDiscountRatios(discRatios: Rate[], firstValidIndex?: Size): void
  • Parameters

    • discRatios: Rate[]
    • Default value firstValidIndex: Size = 0

    Returns void

setOnForwardRates

  • setOnForwardRates(rates: Rate[], firstValidIndex?: Size): void
  • Parameters

    • rates: Rate[]
    • Default value firstValidIndex: Size = 0

    Returns void

swapRate