public class SwaptionSingleCurve extends AbstractLIBORMonteCarloProduct
Swaption.| Constructor and Description |
|---|
SwaptionSingleCurve(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] swaprates)
Create a swaption.
|
SwaptionSingleCurve(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double[] swaprates)
Create a swaption.
|
SwaptionSingleCurve(double exerciseDate,
TimeDiscretization swapTenor,
double swaprate)
Creates a swaption using a TimeDiscretizationFromArray
|
| 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
The model is determined by a discount factor curve and a swap rate volatility.
|
String |
toString() |
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic SwaptionSingleCurve(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double[] swaprates)
exerciseDate - Vector of exercise dates.fixingDates - Vector of fixing dates.paymentDates - Vector of payment dates (must have same length as fixing dates).periodLengths - Vector of period lengths.swaprates - Vector of strikes (must have same length as fixing dates).public SwaptionSingleCurve(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] swaprates)
exerciseDate - Vector of exercise dates.fixingDates - Vector of fixing dates.paymentDates - Vector of payment dates (must have same length as fixing dates).swaprates - Vector of strikes (must have same length as fixing dates).public SwaptionSingleCurve(double exerciseDate,
TimeDiscretization swapTenor,
double swaprate)
exerciseDate - Exercise date.swapTenor - Object specifying period start and end dates.swaprate - Strike.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 on which to value the swap.swaprateVolatility - The Black volatility.public String toString()
toString in class AbstractMonteCarloProductCopyright © 2019. All rights reserved.