| Contents | Index |
Base abstract class for interest-rate curve objects
| On this page… |
|---|
Superclasses: None
Subclasses: @IRDataCurve, @IRFunctionCurve
IRCurve is an abstract class; you cannot create instances of it directly. You can create IRDataCurve and IRFunctionCurve objects that are derived from this class.
@IRCurve is an abstract class. To construct an IRCurve object, use one of the subclass constructors, IRDataCurve or IRFunctionCurve.
| Name | Description |
|---|---|
| Type | Type of interest-rate curve: zero, forward, or discount. |
| Settle | Scalar or column vector of settlement dates. |
| Compounding | Scalar that sets the compounding frequency per year for the IRCurve object:
|
| Basis | Day-count basis of the interest-rate curve. A vector of integers.
|
Classes that inherit from the IRCurve abstract class must implement the following methods.
| 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 is identical to the RateSpec structure produced by the Financial Derivatives Toolbox function intenvset. |
![]() | @IRBootstrapOptions | @IRDataCurve | ![]() |
View 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 |