List of utility methods to do Collection Mean
Double | mean(Collection mean if (dist != null && !dist.isEmpty()) { double sum = 0d; int count = 0; for (Double val : dist) { if (val != null) { sum += val; count++; return count > 0 ? sum / count : null; return null; |
double | mean(Collection mean return mean(vector.toArray(new Number[vector.size()])); |
double | mean(final Collection Calculates the mean of a Collection return sum(values) / values.size();
|
double | mean(final Collection mean final double total = sum(values); return total / values.size(); |
double[] | meanAndVariance(Collection mean And Variance return meanAndVariance(vector.toArray(new Number[vector.size()]), true); |