public class Swaption extends AbstractLIBORMonteCarloProduct implements Swaption
SwaptionFromSwapSchedules.
Important: If the LIBOR Market Model is a multi-curve model in the sense that the
numeraire is not calculated from the forward curve, then this valuation does
assume that the basis deterministic. For the valuation of a fully generalize swaption,
you have to use the Option component on a Swap.SwaptionFromSwapSchedulesSwaption.ValueUnit| Constructor and Description |
|---|
Swaption(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] swaprates)
Create a swaption.
|
Swaption(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double[] swaprates)
Create a swaption.
|
Swaption(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double[] swaprates,
double notional)
Create a swaption.
|
Swaption(double exerciseDate,
TimeDiscretization swapTenor,
double swaprate)
Creates a swaption using a TimeDiscretizationFromArray
|
| Modifier and Type | Method and Description |
|---|---|
double |
getExerciseDate() |
RandomVariable |
getExerciseIndicator(LIBORModelMonteCarloSimulationModel model)
Deprecated.
|
double[] |
getFixingDates() |
double |
getNotional() |
double[] |
getPaymentDates() |
double[] |
getPeriodLengths() |
double[] |
getSwaprates() |
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 Swaption(double exerciseDate,
double[] fixingDates,
double[] paymentDates,
double[] periodLengths,
double[] swaprates,
double notional)
exerciseDate - The exercise date of the swaption.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).notional - The notional date of the swaption.public Swaption(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 Swaption(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 Swaption(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 AbstractMonteCarloProduct@Deprecated public RandomVariable getExerciseIndicator(LIBORModelMonteCarloSimulationModel model) throws CalculationException
CalculationExceptionpublic double getExerciseDate()
public double[] getFixingDates()
public double[] getPaymentDates()
public double[] getPeriodLengths()
public double[] getSwaprates()
public double getNotional()
Copyright © 2019. All rights reserved.