- All Implemented Interfaces:
Serializable
,Comparable<Swaption.ValueUnit>
,java.lang.constant.Constable
- Enclosing interface:
- Swaption
public static enum Swaption.ValueUnit extends Enum<Swaption.ValueUnit>
Swaptions specific value units, like swaption implied volatilities.
- Author:
- Christian Fries
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INTEGRATEDLOGNORMALVARIANCE
Deprecated.Use INTEGRATEDVARIANCELOGNORMAL instead.INTEGRATEDNORMALVARIANCE
Deprecated.Use INTEGRATEDVARIANCENORMAL instead.INTEGRATEDVARIANCE
Deprecated.Use INTEGRATEDVARIANCELOGNORMAL insteadINTEGRATEDVARIANCELOGNORMAL
Returns the Black-Scholes implied integrated variance, i.e., σ2 T.INTEGRATEDVARIANCENORMAL
Returns the Bachelier implied integrated variance, i.e., σ2 T.VALUE
Returns the value of the swaption.VOLATILITY
Deprecated.Use VOLATILITYLOGNORMAL insteadVOLATILITYLOGNORMAL
Returns the Black-Scholes implied volatility, i.e., σ.VOLATILITYNORMAL
Returns the Bachelier implied volatility, i.e., σ.VOLATILITYNORMALATM
The Bachelier implied volatility, assuming an ATM option. -
Method Summary
Modifier and Type Method Description static Swaption.ValueUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static Swaption.ValueUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VALUE
Returns the value of the swaption. -
INTEGRATEDVARIANCELOGNORMAL
Returns the Black-Scholes implied integrated variance, i.e., σ2 T. -
INTEGRATEDLOGNORMALVARIANCE
Deprecated.Use INTEGRATEDVARIANCELOGNORMAL instead.Returns the Black-Scholes implied integrated variance, i.e., σ2 T. -
VOLATILITYLOGNORMAL
Returns the Black-Scholes implied volatility, i.e., σ. -
INTEGRATEDVARIANCENORMAL
Returns the Bachelier implied integrated variance, i.e., σ2 T. -
INTEGRATEDNORMALVARIANCE
Deprecated.Use INTEGRATEDVARIANCENORMAL instead.Returns the Bachelier implied integrated variance, i.e., σ2 T. -
VOLATILITYNORMAL
Returns the Bachelier implied volatility, i.e., σ. -
INTEGRATEDVARIANCE
Deprecated.Use INTEGRATEDVARIANCELOGNORMAL insteadReturns the Black-Scholes implied integrated variance, i.e., σ2 T. -
VOLATILITY
Deprecated.Use VOLATILITYLOGNORMAL insteadReturns the Black-Scholes implied volatility, i.e., σ. -
VOLATILITYNORMALATM
The Bachelier implied volatility, assuming an ATM option. The value is obtained by multiplying VALUE with 1.0 / Math.sqrt(optionMaturity / Math.PI / 2.0) / annuity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-