parametercurve
Description
Build a parametercurve
object using
parametercurve
.
After creating a parametercurve
object, you can use the associated
object functions discountfactors
, zerorates
, and
forwardrates
.
For more detailed information on this workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
For more information on the available instruments, models, and pricing methods, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates a parametercurve_obj
= parametercurve(Type
,Settle
,FunctionHandle
)parametercurve
object.
sets properties using
name-value pairs and any of the arguments in the previous syntax. For
example, parametercurve_obj
= parametercurve(___,Name,Value
)parametercurve_obj =
parametercurve('zero',datetime(2017,1,30),@(t)polyval([-0.0001 0.003
0.02],t),'Compounding',4,'Basis',5,'Parameters',[-0.0001 0.003
0.02])
creates a parametercurve
object for
a zero curve. You can specify multiple name-value pair arguments.
Input Arguments
Properties
Object Functions
discountfactors | Calculate discount factors for parametercurve object |
zerorates | Calculate zero rates for parametercurve object |
forwardrates | Calculate forward rates for parametercurve object |