Class StatsImpl

  • All Implemented Interfaces:
    Stats

    @Immutable
    public final class StatsImpl
    extends Object
    implements Stats
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getCount

        public long getCount()
        Number of accumulated values.
        Specified by:
        getCount in interface Stats
      • getMin

        public double getMin()
        Minimum from accumulated values.
        Specified by:
        getMin in interface Stats
      • getMax

        public double getMax()
        Maximum from accumulated values.
        Specified by:
        getMax in interface Stats
      • getAverage

        public double getAverage()
        Average of accumulated values.
        Specified by:
        getAverage in interface Stats
      • getStdDeviation

        public double getStdDeviation()
        Returns standard deviation of accumulated values.
        Specified by:
        getStdDeviation in interface Stats
      • getPercentiles

        public Map<Integer,​Double> getPercentiles()
        Returns an unmodifiable map, that contains percentiles and corresponding values of accumulated data.
        Specified by:
        getPercentiles in interface Stats