| Contents | Index |
CurveObj = IRDataCurve(Type, Settle) CurveObj = IRDataCurve(Type, Settle, Dates, Data, 'Parameter1', Value1, 'Parameter2', Value2, ...)
| Type | Type of interest-rate curve. Acceptable values are forward, zero, or discount. |
| Settle | Scalar of settlement dates. |
| Dates | (Optional) Dates corresponding to rate data. |
| Data | (Optional) Interest-rate data for the curve object. |
| Compounding | (Optional) Scalar that sets the compounding frequency per year for the IRDataCurve object:
|
| Basis | (Optional) Day-count basis of the interest-rate curve. A scalar of integers.
For more information, see basis. |
| InterpMethod | (Optional) Values are:
|
CurveObj = IRDataCurve(Type, Settle, Dates, Data, 'Parameter1', Value1, 'Parameter2', Value2, ...) constructs an interest-rate curve with the optionally specified Dates and Data. You must enter the optional arguments for Basis, Compounding, and InterpMethod as parameter/value pairs.
Alternatively, an IRDataCurve object can be bootstrapped from market data using the bootstrap method.
After an IRDataCurve curve object is constructed, you can use the following methods to determine the forward rates, zero rates, and discount factors. In addition, you can use the toRateSpec method to convert the interest-rate curve object to a RateSpec structure.
| Method | Description |
|---|---|
| getForwardRates | Returns forward rates for input dates. |
| getZeroRates | Returns zero rates for input dates. |
| getDiscountFactors | Returns discount factors for input dates. |
| getParYields | Returns par yields for input dates. |
| toRateSpec | Converts to be a RateSpec object; this structure is identical to the RateSpec produced by the Financial Derivatives Toolbox function intenvset. |
| bootstrap | Bootstraps an interest rate curve from market data. |
Data = [2.09 2.47 2.71 3.12 3.43 3.85 4.57 4.58]/100;
Dates = daysadd(today,[360 2*360 3*360 5*360 7*360 10*360 20*360 30*360],1);
irdc = IRDataCurve('Zero',today,Dates,Data)
irdc =
Properties:
Dates: [8x1 double]
Data: [8x1 double]
InterpMethod: 'linear'
Type: 'Zero'
Settle: 733599
Compounding: 2
Basis: 0View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |