public class CashSettledPayerSwaption extends AbstractSingleSwapRateProduct
| Constructor and Description |
|---|
CashSettledPayerSwaption(Schedule fixSchedule,
Schedule floatSchedule,
double strike,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
AnnuityMapping.AnnuityMappingType annuityMappingType)
Create the product.
|
CashSettledPayerSwaption(Schedule fixSchedule,
Schedule floatSchedule,
double strike,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
AnnuityMapping.AnnuityMappingType annuityMappingType,
double replicationLowerBound,
double replicationUpperBound,
int replicationNumberOfEvaluationPoints)
Create the product with custom replication settings.
|
| Modifier and Type | Method and Description |
|---|---|
protected AnnuityMapping |
buildAnnuityMapping(VolatilityCubeModel model)
Since most annuity mappings require data from models to be created, but models are only provided at execution of
getValue,
the product needs to dynamically be able to build its annuity mapping. |
protected double |
hedgeWeight(double swapRate,
AnnuityMapping annuityMapping,
VolatilityCubeModel model)
Essentially the second derivative of the payoff function.
|
protected double |
payoffFunction(double swapRate,
AnnuityMapping annuityMapping,
VolatilityCubeModel model)
Payoff function of the product.
|
protected double |
singularAddon(double swapRate,
AnnuityMapping annuityMapping,
VolatilityCubeModel model)
As some products have a portion of their weight in a singular point,
this is portion is split off from the
hedgeweight and added after the integration. |
getDiscountCurveName, getFixSchedule, getFloatSchedule, getForwardCurveName, getIntegrationLowerBound, getIntegrationNumberOfEvaluationPoints, getIntegrationUpperBound, getValue, getValue, getVolatilityCubeName, setIntegrationParameters, valueCall, valuePutgetValue, getValue, getValuepublic CashSettledPayerSwaption(Schedule fixSchedule, Schedule floatSchedule, double strike, String discountCurveName, String forwardCurveName, String volatilityCubeName, AnnuityMapping.AnnuityMappingType annuityMappingType)
fixSchedule - The fix schedule of the swap.floatSchedule - The float schedule of the swap.strike - The strike of the option.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.annuityMappingType - The type of annuity mapping to be used for evaluation.public CashSettledPayerSwaption(Schedule fixSchedule, Schedule floatSchedule, double strike, String discountCurveName, String forwardCurveName, String volatilityCubeName, AnnuityMapping.AnnuityMappingType annuityMappingType, double replicationLowerBound, double replicationUpperBound, int replicationNumberOfEvaluationPoints)
fixSchedule - The fix schedule of the swap.floatSchedule - The float schedule of the swap.strike - The strike of the option.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.annuityMappingType - The type of annuity mapping to be used for evaluation.replicationLowerBound - The lowest strike the replication may use.replicationUpperBound - The largest strike the replication may use.replicationNumberOfEvaluationPoints - The number of points the replication may evaluate.protected double payoffFunction(double swapRate,
AnnuityMapping annuityMapping,
VolatilityCubeModel model)
AbstractSingleSwapRateProductpayoffFunction in class AbstractSingleSwapRateProductswapRate - The swap rate.annuityMapping - The annuity mapping to use.model - The model for context.protected double hedgeWeight(double swapRate,
AnnuityMapping annuityMapping,
VolatilityCubeModel model)
AbstractSingleSwapRateProducthedgeWeight in class AbstractSingleSwapRateProductswapRate - The swap rate.annuityMapping - The annuity mapping to use.model - The model for context.protected double singularAddon(double swapRate,
AnnuityMapping annuityMapping,
VolatilityCubeModel model)
AbstractSingleSwapRateProducthedgeweight and added after the integration.singularAddon in class AbstractSingleSwapRateProductswapRate - The swap rate.annuityMapping - The annuity mapping to use.model - The model for context.protected AnnuityMapping buildAnnuityMapping(VolatilityCubeModel model)
AbstractSingleSwapRateProductgetValue,
the product needs to dynamically be able to build its annuity mapping.
This method may be left to return null, if the product requires no annuity mapping or is intended to always receive an annuity mapping for evaluation.buildAnnuityMapping in class AbstractSingleSwapRateProductmodel - The model for context.Copyright © 2019. All rights reserved.