public class SwaptionSimple extends AbstractLIBORMonteCarloProduct
| Modifier and Type | Class and Description |
|---|---|
static class |
SwaptionSimple.ValueUnit |
| Constructor and Description |
|---|
SwaptionSimple(double swaprate,
double[] swapTenor,
SwaptionSimple.ValueUnit valueUnit)
Note: It is implicitly assumed that swapTenor[0] is the exercise date (no forward starting).
|
SwaptionSimple(double swaprate,
TimeDiscretizationInterface swapTenor)
Note: It is implicitly assumed that swapTenor[0] is the exercise date (no forward starting).
|
| 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 SwaptionSimple(double swaprate,
TimeDiscretizationInterface swapTenor)
swaprate - The strike swaprate of the swaption.swapTenor - The swap tenor in doubles.public SwaptionSimple(double swaprate,
double[] swapTenor,
SwaptionSimple.ValueUnit valueUnit)
swaprate - The strike swaprate of the swaption.swapTenor - The swap tenor in doubles.valueUnit - See getValue(AbstractLIBORMarketModel model)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.