| Financial Derivatives Toolbox | ![]() |
Specify time structure for HJM interest rate tree
Syntax
TimeSpec = hjmtimespec(ValuationDate, Maturity, Compounding)
Arguments
Description
TimeSpec = hjmtimespec(ValuationDate, Maturity, Compounding)
sets the number of levels and node times for an HJM tree and determines the mapping between dates and time for rate quoting.
TimeSpec is a structure specifying the time layout for hjmtree. The state observation dates are [Settle; Maturity(1:end-1)]. Because a forward rate is stored at the last observation, the tree can value cash flows out to Maturity.
Example
Specify an eight period tree with semiannual nodes (every six months). Use exponential compounding to report rates.
Compounding = -1
ValuationDate = '15-Jan-1999'
Maturity = datemnth(ValuationDate, 6*(1:8)')
TimeSpec = hjmtimespec(ValuationDate, Maturity, Compounding)
TimeSpec =
FinObj: 'HJMTimeSpec'
ValuationDate: 730135
Maturity: [8x1 double]
Compounding: -1
Basis: 0
EndMonthRule: 1
See Also
| hjmsens | hjmtree | ![]() |