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 |
|---|---|
RandomVariable |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
double |
getValue(ForwardCurve 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, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic 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 RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
getValue in interface TermStructureMonteCarloProductgetValue 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(ForwardCurve 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 © 2019. All rights reserved.