org.jquantlib.termstructures.volatilities
Class Sabr
- java.lang.Object
-
- org.jquantlib.termstructures.volatilities.Sabr
-
public class Sabr extends java.lang.ObjectImplements the Black equivalent volatility for the S.A.B.R. model.
-
-
Constructor Summary
Constructors Constructor and Description Sabr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublesabrVolatility(double strike, double forward, double expiryTime, double alpha, double beta, double nu, double rho)Computes the S.A.B.R.doubleunsafeSabrVolatility(double strike, double forward, double expiryTime, double alpha, double beta, double nu, double rho)Computes the Black equivalent volatility without validating parametersvoidvalidateSabrParameters(double alpha, double beta, double nu, double rho)checks that the parameters are valid; specifically,alpha> 0.0beta>= 0.0 && <=1.0nu>= 0.0rho*rho< 1.0
-
-
-
Method Detail
-
unsafeSabrVolatility
public double unsafeSabrVolatility(double strike, double forward, double expiryTime, double alpha, double beta, double nu, double rho)Computes the Black equivalent volatility without validating parameters- Parameters:
strike-forward-expiryTime-alpha-beta-nu-rho-- Returns:
- Black equivalent volatility
- See Also:
#validateSabrParameters(Real, Real, Real, Real),#sabrVolatility(Rate, Rate, Time, Real, Real, Real, Real)
-
validateSabrParameters
public void validateSabrParameters(double alpha, double beta, double nu, double rho)checks that the parameters are valid; specifically,alpha> 0.0beta>= 0.0 && <=1.0nu>= 0.0rho*rho< 1.0
- Parameters:
alpha-beta-nu-rho-
-
sabrVolatility
public double sabrVolatility(double strike, double forward, double expiryTime, double alpha, double beta, double nu, double rho)Computes the S.A.B.R. volatilityChecks S.A.B.R. model parameters using
#validateSabrParameters(Real, Real, Real, Real)Checks the terms and conditions;
strike> 0.0forward> 0.0expiryTime>= 0.0
- Parameters:
strike-forward-expiryTime-alpha-beta-nu-rho-- Returns:
- See Also:
#unsafeSabrVolatility(Rate, Rate, Time, Real, Real, Real, Real),#validateSabrParameters(Real, Real, Real, Real)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG