public class DigitalCaplet extends AbstractLIBORMonteCarloProduct
LIBORModelMonteCarloSimulationInterface.
The digital caplet pays periodLength if L > K and else 0.
Here L = L(Ti,Ti+1;t) is the
forward rate with period start Ti
and period end Ti+1 and fixing t.
K denotes the strike rate.| Constructor and Description |
|---|
DigitalCaplet(double optionMaturity,
double periodStart,
double periodEnd,
double strike)
Create a digital caplet with given maturity and strike.
|
| 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.
|
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic DigitalCaplet(double optionMaturity,
double periodStart,
double periodEnd,
double strike)
optionMaturity - The option maturity.periodStart - The period start of the forward rate.periodEnd - The period end of the forward rate.strike - The strike rate.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.Copyright © 2017. All rights reserved.