public class Caplet extends AbstractLIBORMonteCarloProduct
AbstractLIBORMarketModel.| Modifier and Type | Class and Description |
|---|---|
static class |
Caplet.ValueUnit |
| Constructor and Description |
|---|
Caplet(double maturity,
double periodLength,
double strike)
Create a caplet.
|
Caplet(double maturity,
double periodLength,
double strike,
boolean isFloorlet)
Create a caplet or a floorlet.
|
Caplet(double maturity,
double periodLength,
double strike,
double daycountFraction,
boolean isFloorlet,
Caplet.ValueUnit valueUnit)
Create a caplet or a floorlet.
|
| 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 Caplet(double maturity,
double periodLength,
double strike,
double daycountFraction,
boolean isFloorlet,
Caplet.ValueUnit valueUnit)
maturity - The fixing date given as double. The payment is at the period end.periodLength - The length of the forward rate period.strike - The strike given as double.daycountFraction - The daycount fraction used in the payout function.isFloorlet - If true, this object will represent a floorlet, otherwise a caplet.valueUnit - The unit of the value returned by the getValue method.public Caplet(double maturity,
double periodLength,
double strike,
boolean isFloorlet)
maturity - The fixing date given as double. The payment is at the period end.periodLength - The length of the forward rate period in ACT/365 convention.strike - The strike given as double.isFloorlet - If true, this object will represent a floorlet, otherwise a caplet.public Caplet(double maturity,
double periodLength,
double strike)
maturity - The fixing date given as double. The payment is at the period end.periodLength - The length of the forward rate period.strike - The strike given as double.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.