public class SimpleZeroSwap extends AbstractLIBORMonteCarloProduct
Swap for a more general implementation.| Constructor and Description |
|---|
SimpleZeroSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates)
Create a swap.
|
SimpleZeroSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
AbstractIndex floatIndex,
boolean isPayFix)
Create a swap.
|
SimpleZeroSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix)
Create a swap.
|
| 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 SimpleZeroSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
AbstractIndex floatIndex,
boolean isPayFix)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)floatIndex - The float index. If null, LIBOR will be used.isPayFix - If true, the swap is receive float - pay fix, otherwise its receive fix - pay float.public SimpleZeroSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)isPayFix - If true, the swap is receive float - pay fix, otherwise its receive fix - pay float.public SimpleZeroSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)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.