Class SizeStatisticImpl

    • Method Detail

      • getCount

        public long getCount()
      • addSize

        public void addSize​(long size)
      • setTotalSize

        public void setTotalSize​(long size)
        Reset the total size to the new value
        Parameters:
        size -
      • getMaxSize

        public long getMaxSize()
        Returns:
        the maximum size of any step
      • setMaxSize

        public void setMaxSize​(long size)
      • getMinSize

        public long getMinSize()
        Returns:
        the minimum size of any step
      • setMinSize

        public void setMinSize​(long size)
      • getTotalSize

        public long getTotalSize()
        Returns:
        the total size of all the steps added together
      • setCount

        public void setCount​(long count)
      • getAverageSize

        public double getAverageSize()
        Returns:
        the average size calculated by dividing the total size by the number of counts
      • getAverageSizeExcludingMinMax

        public double getAverageSizeExcludingMinMax()
        Returns:
        the average size calculated by dividing the total size by the number of counts but excluding the minimum and maximum sizes.
      • getAveragePerSecond

        public double getAveragePerSecond()
        Returns:
        the average number of steps per second
      • getAveragePerSecondExcludingMinMax

        public double getAveragePerSecondExcludingMinMax()
        Returns:
        the average number of steps per second excluding the min & max values