public class CMSOption extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
CMSOption(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double strike)
Create the option on a CMS rate.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
double |
getValue(ForwardCurveInterface forwardCurve,
double swaprateVolatility)
This method returns the value of the product using a Black-Scholes model for the swap rate with the Hunt-Kennedy convexity adjustment.
|
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic CMSOption(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double strike)
exerciseDate - The exercise date of the option.fixingDates - Vector of fixing dates.paymentDates - Vector of payment dates (must have same length as fixing dates)periodLengths - Vector of period length (must have same length as fixing dates)strike - Strike swap rate.public RandomVariableInterface getValue(double evaluationTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
getValue in class AbstractLIBORMonteCarloProductevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public double getValue(ForwardCurveInterface forwardCurve, double swaprateVolatility)
forwardCurve - The forward curve from which the swap rate is calculated. The discount curve, associated with this forward curve is used for discounting this option.swaprateVolatility - The volatility of the log-swaprate.Copyright © 2017. All rights reserved.