List of utility methods to do List Mean
double | mean(List Returns the mean number in the numbers list. double sum = sum(numbers); return sum / numbers.size(); |
float | meanAbsolute(List Arithmetic Mean of absolute values of Vector Elements, e.g. Float sum = (float) 0; for (Float element : vector) { sum += Math.abs(element); return sum / vector.size(); |
double | meanDouble(List Mean double. return sumDouble(list) / list.size();
|
double | meanDoubleList(List mean Double List if (list.isEmpty()) { return 0.0; double total = 0.0; for (Double item : list) { total += item; return total / ((double) list.size()); ... |
List | normalizeFromMeanAndStdev(List normalize From Mean And Stdev List<Double> normalized = new ArrayList<Double>(); for (Double d : values) { normalized.add((d - mean) / stdev); return normalized; |
Double | standardDeviation(List Calculates the standard deviation. Double totalSquaredDeviations = 0.0; for (Double value : values) { totalSquaredDeviations += Math.pow(value - mean, 2); return Math.sqrt(mean(totalSquaredDeviations, values.size())); |