Class DocValuesStats.SortedNumericDocValuesStats<T extends Number>

    • Field Detail

      • valuesCount

        protected long valuesCount
      • mean

        protected double mean
      • variance

        protected double variance
    • Constructor Detail

      • SortedNumericDocValuesStats

        protected SortedNumericDocValuesStats​(String field,
                                              T initialMin,
                                              T initialMax)
    • Method Detail

      • mean

        public final double mean()
        The mean of all values of the field.
      • variance

        public final double variance()
        Returns the variance of all values of the field.
      • stdev

        public final double stdev()
        Returns the stdev of all values of the field.
      • valuesCount

        public final long valuesCount()
        Returns the total number of values for this field.
      • sum

        public abstract T sum()
        Returns the sum of values of the field. Note that if the values are large, the sum might overflow.