Enum Swaption.ValueUnit

    • Enum Constant Detail

      • INTEGRATEDVARIANCELOGNORMAL

        public static final Swaption.ValueUnit INTEGRATEDVARIANCELOGNORMAL
        Returns the Black-Scholes implied integrated variance, i.e., σ2 T.
      • INTEGRATEDLOGNORMALVARIANCE

        public static final Swaption.ValueUnit INTEGRATEDLOGNORMALVARIANCE
        Deprecated.
        Use INTEGRATEDVARIANCELOGNORMAL instead.
        Returns the Black-Scholes implied integrated variance, i.e., σ2 T.
      • VOLATILITYLOGNORMAL

        public static final Swaption.ValueUnit VOLATILITYLOGNORMAL
        Returns the Black-Scholes implied volatility, i.e., σ.
      • INTEGRATEDVARIANCENORMAL

        public static final Swaption.ValueUnit INTEGRATEDVARIANCENORMAL
        Returns the Bachelier implied integrated variance, i.e., σ2 T.
      • INTEGRATEDNORMALVARIANCE

        public static final Swaption.ValueUnit INTEGRATEDNORMALVARIANCE
        Deprecated.
        Use INTEGRATEDVARIANCENORMAL instead.
        Returns the Bachelier implied integrated variance, i.e., σ2 T.
      • VOLATILITYNORMAL

        public static final Swaption.ValueUnit VOLATILITYNORMAL
        Returns the Bachelier implied volatility, i.e., σ.
      • INTEGRATEDVARIANCE

        public static final Swaption.ValueUnit INTEGRATEDVARIANCE
        Deprecated.
        Use INTEGRATEDVARIANCELOGNORMAL instead
        Returns the Black-Scholes implied integrated variance, i.e., σ2 T.
      • VOLATILITY

        public static final Swaption.ValueUnit VOLATILITY
        Deprecated.
        Use VOLATILITYLOGNORMAL instead
        Returns the Black-Scholes implied volatility, i.e., σ.
      • VOLATILITYNORMALATM

        public static final Swaption.ValueUnit 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 Detail

      • values

        public static Swaption.ValueUnit[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Swaption.ValueUnit c : Swaption.ValueUnit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Swaption.ValueUnit valueOf​(String name)
        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 name
        NullPointerException - if the argument is null