public class ExponentialNormalizer extends Object implements NormalizingFunction
| Constructor and Description |
|---|
ExponentialNormalizer(double initialSwapRate,
double scale)
Create the exponential normalizer with parameters.
|
ExponentialNormalizer(Schedule fixSchedule,
Schedule floatSchedule,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
VolatilityCubeModel model)
Create the exponential normalizer from information of the product.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFirstDerivative(double swapRate)
Return the first derivative of the normalizing function at the given swap rate.
|
double |
getSecondDerivative(double swapRate)
Return the second derivative of the normalizing function at the given swap rate.
|
double |
getValue(double swapRate)
Return the value of the normalizing function for the given swap rate.
|
public ExponentialNormalizer(Schedule fixSchedule, Schedule floatSchedule, String discountCurveName, String forwardCurveName, String volatilityCubeName, VolatilityCubeModel model)
fixSchedule - The fix schedule of the product.floatSchedule - The float schedule of the product.discountCurveName - The name of the discount curve.forwardCurveName - The name of the forward curve.volatilityCubeName - The name of the volatility cube.model - The model for context.public ExponentialNormalizer(double initialSwapRate,
double scale)
initialSwapRate - The par swap rate.scale - The scale.public double getValue(double swapRate)
NormalizingFunctiongetValue in interface NormalizingFunctionswapRate - The desired swap ratepublic double getFirstDerivative(double swapRate)
NormalizingFunctiongetFirstDerivative in interface NormalizingFunctionswapRate - The desired swap rate.public double getSecondDerivative(double swapRate)
NormalizingFunctiongetSecondDerivative in interface NormalizingFunctionswapRate - The desired swap rate.Copyright © 2019. All rights reserved.