Class Statistics


  • public class Statistics
    extends java.lang.Object
    A simple read-only holder for accumulated statistics.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double average  
      private long count  
      private double max  
      private double min  
      private double standardDeviation  
    • Constructor Summary

      Constructors 
      Constructor Description
      Statistics​(long count, double min, double max, double average, double standardDeviation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double average()
      Return the current average of the data, or -1 if there is no data.
      long count()
      Return the number of data points recorded.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      double max()
      Return the maximum value of call data points records.
      double min()
      Return the minimum value of call data points records.
      double standardDeviation()
      Return the standard deviation of the data, or -1 if there is no data.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • count

        private final long count
      • min

        private final double min
      • max

        private final double max
      • average

        private final double average
      • standardDeviation

        private final double standardDeviation
    • Constructor Detail

      • Statistics

        public Statistics​(long count,
                          double min,
                          double max,
                          double average,
                          double standardDeviation)
    • Method Detail

      • count

        public long count()
        Return the number of data points recorded.
      • min

        public double min()
        Return the minimum value of call data points records.
      • max

        public double max()
        Return the maximum value of call data points records.
      • average

        public double average()
        Return the current average of the data, or -1 if there is no data.
      • standardDeviation

        public double standardDeviation()
        Return the standard deviation of the data, or -1 if there is no data.
      • 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