Class Stat

  • All Implemented Interfaces:
    Stats

    public class Stat
    extends Object
    implements Stats
    • Constructor Detail

      • Stat

        public Stat()
    • Method Detail

      • addStat

        public void addStat​(long stat)
      • min

        public long min()
        Specified by:
        min in interface Stats
        Returns:
        the minimum data point seen, or 0 if no data was seen
      • max

        public long max()
        Specified by:
        max in interface Stats
        Returns:
        the maximum data point seen, or 0 if no data was seen
      • sum

        public long sum()
        Specified by:
        sum in interface Stats
        Returns:
        the sum of the data points seen, or 0 if no data was seen
      • mean

        public double mean()
        Specified by:
        mean in interface Stats
        Returns:
        the mean of the data points seen, or Double.NaN if no data was seen
      • clear

        public void clear()
      • num

        public long num()
        Specified by:
        num in interface Stats
        Returns:
        the number of data points seen
      • copy

        public Stat copy()