Class QuantileResult

    • Method Detail

      • of

        public static QuantileResult of​(double value,
                                        int[] indices,
                                        DoubleArray weights)
        Creates an QuantileResult from the value, the indices and the weights.

        The amounts must be of the correct type, one pay and one receive. The currencies of the payments must differ.

        Parameters:
        value - the quantile value
        indices - the indices of the samples used in the quantile computation
        weights - the weights of the samples used in the quantile computation
        Returns:
        the quantile result
      • meta

        public static QuantileResult.Meta meta()
        The meta-bean for QuantileResult.
        Returns:
        the meta-bean, not null
      • metaBean

        public QuantileResult.Meta metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getValue

        public double getValue()
        Gets the quantile value.
        Returns:
        the value of the property
      • getIndices

        public int[] getIndices()
        Gets the indices.
        Returns:
        the value of the property
      • getWeights

        public DoubleArray getWeights()
        Gets the weights.
        Returns:
        the value of the property, not null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object