Class AggUtil


  • public class AggUtil
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double avg​(double sum, long count)
      Computes and returns average for given sum and count
      static double stdDev​(double sumSq, double sum, long count)
      Computes and returns corrected standard deviation for given values
      static double uncorrectedStdDev​(double sumSq, double sum, long count)
      Computes and returns uncorrected standard deviation for given values
      static double uncorrectedVariance​(double sumSq, double sum, long count)
      Computes and returns uncorrected variance for given values
      static double variance​(double sumSq, double sum, long count)
      Computes and returns corrected variance for given values
    • Method Detail

      • avg

        public static double avg​(double sum,
                                 long count)
        Computes and returns average for given sum and count
      • uncorrectedStdDev

        public static double uncorrectedStdDev​(double sumSq,
                                               double sum,
                                               long count)
        Computes and returns uncorrected standard deviation for given values
      • stdDev

        public static double stdDev​(double sumSq,
                                    double sum,
                                    long count)
        Computes and returns corrected standard deviation for given values
      • uncorrectedVariance

        public static double uncorrectedVariance​(double sumSq,
                                                 double sum,
                                                 long count)
        Computes and returns uncorrected variance for given values
      • variance

        public static double variance​(double sumSq,
                                      double sum,
                                      long count)
        Computes and returns corrected variance for given values