public class BasicPiterbargAnnuityMapping extends Object implements AnnuityMapping
AnnuityMapping.AnnuityMappingType| Constructor and Description |
|---|
BasicPiterbargAnnuityMapping(Schedule fixSchedule,
Schedule floatSchedule,
double strike,
VolatilityCubeModel model,
String discountCurveName,
String volatilityCubeName)
Create the annuity mapping.
|
BasicPiterbargAnnuityMapping(Schedule fixSchedule,
Schedule floatSchedule,
double strike,
VolatilityCubeModel model,
String discountCurveName,
String volatilityCubeName,
double lowerBound,
double upperBound,
int numberOfEvaluationPoints)
Create the annuity mapping.
|
BasicPiterbargAnnuityMapping(Schedule fixSchedule,
Schedule floatSchedule,
VolatilityCubeModel model,
String discountCurveName,
String volatilityCubeName)
Create the annuity mapping.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFirstDerivative(double swapRate)
Return the first derivative of the annuity mapping for the given swap rate.
|
double |
getSecondDerivative(double swapRate)
Return the second derivative of the annuity mapping for the given swap rate.
|
double |
getValue(double swapRate)
Return the value the fraction of annuities take, when the realized swap rate meets the given swap rate.
|
public BasicPiterbargAnnuityMapping(Schedule fixSchedule, Schedule floatSchedule, VolatilityCubeModel model, String discountCurveName, String volatilityCubeName)
fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.model - The model containing curve and cube.discountCurveName - The name of the discount curve.volatilityCubeName - The name of the volatility cube.public BasicPiterbargAnnuityMapping(Schedule fixSchedule, Schedule floatSchedule, double strike, VolatilityCubeModel model, String discountCurveName, String volatilityCubeName)
fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.strike - The strike of the product this annuity mapping is being created for.model - The model containing curve and cube.discountCurveName - The name of the discount curve.volatilityCubeName - The name of the volatility cube.public BasicPiterbargAnnuityMapping(Schedule fixSchedule, Schedule floatSchedule, double strike, VolatilityCubeModel model, String discountCurveName, String volatilityCubeName, double lowerBound, double upperBound, int numberOfEvaluationPoints)
fixSchedule - Fix leg schedule of the swap.floatSchedule - Float leg schedule of the swap.strike - The strike of the product this annuity mapping is being created for.model - The model containing curve and cube.discountCurveName - The name of the discount curve.volatilityCubeName - The name of the volatility 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 double getValue(double swapRate)
AnnuityMappinggetValue in interface AnnuityMappingswapRate - The swap rate at which to evaluate the annuity mapping.public double getFirstDerivative(double swapRate)
AnnuityMappinggetFirstDerivative in interface AnnuityMappingswapRate - The swap rate at which to evaluate the annuity mapping.public double getSecondDerivative(double swapRate)
AnnuityMappinggetSecondDerivative in interface AnnuityMappingswapRate - The swap rate at which to evaluate the annuity mapping.Copyright © 2019. All rights reserved.