public class SwaptionATM extends AbstractLIBORMonteCarloProduct implements Swaption
Swaption.ValueUnit| Constructor and Description |
|---|
SwaptionATM(double[] swapTenor,
Swaption.ValueUnit valueUnit) |
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getImpliedBachelierATMOptionVolatility(RandomVariable optionValue,
double optionMaturity,
double swapAnnuity)
Calculates ATM Bachelier implied volatilities.
|
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 SwaptionATM(double[] swapTenor,
Swaption.ValueUnit valueUnit)
public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
TermStructureMonteCarloProductgetValue 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.public RandomVariable getImpliedBachelierATMOptionVolatility(RandomVariable optionValue, double optionMaturity, double swapAnnuity)
optionValue - RandomVarable representing the value of the optionoptionMaturity - Time to maturity.swapAnnuity - The swap annuity as seen on valuation time.AnalyticFormulas.bachelierOptionImpliedVolatility(double, double, double, double, double)Copyright © 2019. All rights reserved.