public class AnnuityMappingFactory extends Object
| Constructor and Description |
|---|
AnnuityMappingFactory(Schedule fixSchedule,
Schedule floatSchedule,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName)
Create the factory.
|
AnnuityMappingFactory(Schedule fixSchedule,
Schedule floatSchedule,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
double strike,
double lowerBound,
double upperBound,
int numberOfEvaluationPoints)
Create the factory.
|
| Modifier and Type | Method and Description |
|---|---|
AnnuityMapping |
build(AnnuityMapping.AnnuityMappingType type,
VolatilityCubeModel model)
Build the annuity mapping.
|
static AnnuityMapping |
buildAnnuityMapping(double strike,
Schedule fixSchedule,
Schedule floatSchedule,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
AnnuityMapping.AnnuityMappingType type,
VolatilityCubeModel model)
Build an annuity mapping.
|
static AnnuityMapping |
buildAnnuityMapping(double strike,
Schedule fixSchedule,
Schedule floatSchedule,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
AnnuityMapping.AnnuityMappingType type,
VolatilityCubeModel model,
double lowerBound,
double upperBound,
int numberOfEvaluationPoints)
Build an annuity mapping.
|
public AnnuityMappingFactory(Schedule fixSchedule, Schedule floatSchedule, String discountCurveName, String forwardCurveName, String volatilityCubeName)
fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.public AnnuityMappingFactory(Schedule fixSchedule, Schedule floatSchedule, String discountCurveName, String forwardCurveName, String volatilityCubeName, double strike, double lowerBound, double upperBound, int numberOfEvaluationPoints)
fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.strike - The strike to get the proper volatilities from the cube.lowerBound - The lowest strike the Piterbarg annuity mapping may use during replication, when normalizing.upperBound - The maximum strike the Piterbarg annuity mapping may use during replication, when normalizing.numberOfEvaluationPoints - The number of points the replication may evaluate Piterbarg annuity mapping is normalizing.public static AnnuityMapping buildAnnuityMapping(double strike, Schedule fixSchedule, Schedule floatSchedule, String discountCurveName, String forwardCurveName, String volatilityCubeName, AnnuityMapping.AnnuityMappingType type, VolatilityCubeModel model)
strike - The strike to get the proper volatilities from the cube.fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.type - The desired type of annuity mapping.model - The model containing curves and cube.public static AnnuityMapping buildAnnuityMapping(double strike, Schedule fixSchedule, Schedule floatSchedule, String discountCurveName, String forwardCurveName, String volatilityCubeName, AnnuityMapping.AnnuityMappingType type, VolatilityCubeModel model, double lowerBound, double upperBound, int numberOfEvaluationPoints)
strike - The strike to get the proper volatilities from the cube.fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.type - The desired type of annuity mapping.model - The model containing curves and cube.lowerBound - The lowest strike the Piterbarg annuity mapping may use during replication, when normalizing.upperBound - The maximum strike the Piterbarg annuity mapping may use during replication, when normalizing.numberOfEvaluationPoints - The number of points the replication may evaluate Piterbarg annuity mapping is normalizing.public AnnuityMapping build(AnnuityMapping.AnnuityMappingType type, VolatilityCubeModel model)
type - The desired type of annuity mapping.model - The model containing curves and cube.Copyright © 2019. All rights reserved.