public class CancelableSwap extends AbstractLIBORMonteCarloProduct
LIBORModelMonteCarloSimulationModel| Constructor and Description |
|---|
CancelableSwap(boolean[] isPeriodStartDateExerciseDate,
double[] fixingDates,
double[] periodLength,
double[] paymentDates,
double[] periodNotionals,
double[] swaprates) |
| 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.
|
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 CancelableSwap(boolean[] isPeriodStartDateExerciseDate,
double[] fixingDates,
double[] periodLength,
double[] paymentDates,
double[] periodNotionals,
double[] swaprates)
isPeriodStartDateExerciseDate - If true, we may exercise at period startfixingDates - Vector of fixing datesperiodLength - Vector of periodLengthpaymentDates - Vector of payment dates (must have same length as fixing dates)periodNotionals - Vector of period notionals.swaprates - Vector of strikes (must have same length as fixing dates)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.Copyright © 2019. All rights reserved.