public class SimplifiedLinearAnnuityMapping extends Object implements AnnuityMapping
AnnuityMapping.AnnuityMappingType| Constructor and Description |
|---|
SimplifiedLinearAnnuityMapping(Schedule schedule,
double initialAnnuity,
double initialSwapRate,
double discountFactor) |
SimplifiedLinearAnnuityMapping(Schedule fixSchedule,
Schedule floatSchedule,
AnalyticModel model,
String discountCurveName)
Construct 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 SimplifiedLinearAnnuityMapping(Schedule schedule, double initialAnnuity, double initialSwapRate, double discountFactor)
public SimplifiedLinearAnnuityMapping(Schedule fixSchedule, Schedule floatSchedule, AnalyticModel model, String discountCurveName)
fixSchedule - The schedule of the fix leg of the swap.floatSchedule - The schedule of the float leg of the swap.model - The model containing the curves.discountCurveName - The discount curve.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.