public class BasicStatisticCalculator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE |
static int |
FAST |
static int |
MAX |
static int |
MIN |
static int |
REST |
static int |
SLOW |
static int |
STDDEV |
static double |
UNAVAILABLE |
Constructor and Description |
---|
BasicStatisticCalculator() |
Modifier and Type | Method and Description |
---|---|
static double |
calculateAverage(java.util.List<java.lang.Double> values)
static method to calculate average value of a list of double values
|
static double[] |
calculateBasicStatisticsDouble(java.util.List<java.lang.Double> values,
double fastestBoundaryPercentage,
double slowestBoundaryPercentage)
Calculate min, max, avg, std dev, average on fastestBoundaryPercentage,
average on lowestBoundaryPercentage, and average on the rest with list of
Double values as input
|
static double[] |
calculateBasicStatisticsLong(java.util.List<java.lang.Long> values,
double fastestBoundaryPercentage,
double lowestBoundaryPercentage)
Calculate min, max, avg, std dev, average on fastestBoundaryPercentage,
average on lowestBoundaryPercentage, and average on the rest with list of
Long values as input
|
public static final int MIN
public static final int MAX
public static final int AVERAGE
public static final int STDDEV
public static final int FAST
public static final int SLOW
public static final int REST
public static final double UNAVAILABLE
public static double[] calculateBasicStatisticsLong(java.util.List<java.lang.Long> values, double fastestBoundaryPercentage, double lowestBoundaryPercentage)
values
- fastestBoundaryPercentage
- lowestBoundaryPercentage
- public static double[] calculateBasicStatisticsDouble(java.util.List<java.lang.Double> values, double fastestBoundaryPercentage, double slowestBoundaryPercentage)
values
- fastestBoundaryPercentage
- slowestBoundaryPercentage
- public static double calculateAverage(java.util.List<java.lang.Double> values)
values
-