derivget
Get derivatives pricing options
Description
extracts the value of the specified Value
= derivget(Options
,ParameterName
)ParameterName
argument values
from the derivative Options
structure.
Examples
Get Derivatives Pricing Options
Enable the display of additional diagnostic information that appears when executing pricing functions
Options = derivset('Diagnostics','on')
Options = struct with fields:
Diagnostics: 'on'
Warnings: 'on'
ConstRate: 'on'
BarrierMethod: 'unenhanced'
Use derivget
to extract the value of Diagnostics
from the Options
structure.
Value = derivget(Options, 'Diagnostics')
Value = 'on'
Use derivget
to extract the value of ConstRate
.
Value = derivget(Options, 'ConstRate')
Value = 'on'
If the value of 'ConstRate'
is not previously set with derivset
, the answer represents the default setting for 'ConstRate'
.
Find the value of 'BarrierMethod'
in this Options structure.
derivget(Options ,'BarrierMethod')
ans = 'unenhanced'
Input Arguments
Options
— Existing options specification
structure
Existing options specification, specified as a structure obtained from a
previous call to derivset
.
Data Types: struct
ParameterName
— Parameter name to be accessed in Options
structure
character vector with value of 'Diagnostics'
, 'Warnings'
, 'ConstRate'
, or 'BarrierMethod'
Parameter name to be accessed in Options
structure,
specified as a character vector for one of the following:
'Diagnostics'
— Print diagnostic information with a returned value of'on'
or'off'
. This option applies only for HJM, BDT, HW and BK pricing.'Warnings'
— Display warnings with a returned value of'on'
or'off'
. This option applies only for HJM, BDT, HW and BK pricing.'ConstRate'
— Assume constant rates between tree nodes with a returned value of'on'
or'off'
. This option applies only for HJM, BDT, HW and BK pricing.BarrierMethod
— Method for pricing Barrier option. The returned values are either'unenhanced'
that uses no correction calculation or'interp'
that uses an enhanced valuation interpolating between nodes on barrier boundaries.
Data Types: char
Output Arguments
Value
— Value
character vector
Value, returned as a character vector depending on the specified
ParameterName
.
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)