public class SimpleSwap extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates)
Create a swap.
|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix)
Create a swap.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
String |
toString() |
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic SimpleSwap(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 SimpleSwap(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 RandomVariableInterface getValue(double evaluationTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
getValue 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 String toString()
toString in class AbstractMonteCarloProductCopyright © 2017. All rights reserved.