Constructors
constructor
- new Cube(optionDates: Date[], swapTenors: Period[], optionTimes: Time[], swapLengths: Time[], nLayers: Size, extrapolation?: boolean, backwardFlat?: boolean): Cube
-
Parameters
-
optionDates: Date[]
-
swapTenors: Period[]
-
optionTimes: Time[]
-
swapLengths: Time[]
-
nLayers: Size
-
Default value extrapolation: boolean = true
-
Default value backwardFlat: boolean = false
Properties
Private _backwardFlat
_backwardFlat: boolean
Private _extrapolation
_extrapolation: boolean
Private _interpolators
Private _nLayers
Private _optionDates
_optionDates: Date[]
Private _optionTimes
Private _points
Private _swapLengths
Private _swapTenors
Private _transposedPoints
_transposed
Points: Matrix[] = []
Methods
browse
-
expandLayers
- expandLayers(i: Size, expandOptionTimes: boolean, j: Size, expandSwapLengths: boolean): void
-
Parameters
-
-
expandOptionTimes: boolean
-
-
expandSwapLengths: boolean
Returns void
f
-
Parameters
Returns Real[]
from
-
Parameters
Returns void
optionDates
-
Returns Date[]
optionTimes
-
Returns Time[]
points
-
setElement
- setElement(IndexOfLayer: Size, IndexOfRow: Size, IndexOfColumn: Size, x: Real): void
-
Parameters
Returns void
setLayer
-
Parameters
Returns void
setPoint
- setPoint(optionDate: Date, swapTenor: Period, optionTime: Time, swapLength: Time, point: Real[]): void
-
Parameters
-
optionDate: Date
-
-
optionTime: Time
-
swapLength: Time
-
point: Real[]
Returns void
setPoints
-
Parameters
Returns void
swapLengths
-
Returns Time[]
swapTenors
-
updateInterpolators
- updateInterpolators(): void
-
Returns void