Package org.apache.solr.search.facet
Class AggUtil
- java.lang.Object
-
- org.apache.solr.search.facet.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 countstatic double
stdDev(double sumSq, double sum, long count)
Computes and returns corrected standard deviation for given valuesstatic double
uncorrectedStdDev(double sumSq, double sum, long count)
Computes and returns uncorrected standard deviation for given valuesstatic double
uncorrectedVariance(double sumSq, double sum, long count)
Computes and returns uncorrected variance for given valuesstatic 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
-
-