Class VolatilityAndBucketedSensitivities

  • All Implemented Interfaces:
    java.io.Serializable, Bean, ImmutableBean

    public final class VolatilityAndBucketedSensitivities
    extends java.lang.Object
    implements ImmutableBean, java.io.Serializable
    Combines information about a volatility and its sensitivities.

    This contains a volatility calculated at a particular x and y and the bucketed sensitivities of this value to the volatility data points that were used to construct the surface.

    See Also:
    Serialized Form
    • Method Detail

      • of

        public static VolatilityAndBucketedSensitivities of​(double volatility,
                                                            DoubleMatrix sensitivities)
        Obtains an instance.
        Parameters:
        volatility - the volatility
        sensitivities - the bucketed sensitivities
        Returns:
        the volatility and sensitivities
      • getVolatility

        public double getVolatility()
        Gets the volatility.
        Returns:
        the value of the property
      • getSensitivities

        public DoubleMatrix getSensitivities()
        Gets the sensitivities.
        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object