List of utility methods to do mean
double | mean(int[] values, int max) mean int j; double m; m = 0.; for (j = 0; j < max; j++) { m += (double) values[j]; m = m / (double) max; return m; ... |
Double | mean(Integer[] values) mean if (values == null || values.length <= 0) { return null; double sum = 0.0; double numIntegers = 0; for (Integer i : values) { if (i == null) { continue; ... |
double | mean(List mean double sum = sum(a); double mean = 0; mean = sum / (a.size() * 1.0); return mean; |
double | mean(List mean double sum = 0; for (Double value : values) sum += value; return sum / (double) values.size(); |
long | mean(long[] values) mean long sum = 0l; for (long v : values) { sum += v; return sum / values.length; |
double | mean(Number[] array) Returns the mean of the given array. double result; int i; if (array.length == 0) return Double.NaN; result = 0; for (i = 0; i < array.length; i++) result += array[i].doubleValue(); result /= array.length; ... |
double | Mean(Object in) Mean return ((double) Sum(in) / (double) NElem(in)); |
double | mean_Integer(List Computes average of the elements of the vector. return mean(toIntegerArray(values));
|
double | meanAbortedExecutionTime(double totalExecutionTime, int totalOps, double granuleAbortProb) mean Aborted Execution Time double meanExec = 0D; for (int i = 1; i <= totalOps; i++) { meanExec += binomialProbIthTrial(granuleAbortProb, i) * executionTillIthOperation(totalExecutionTime, totalOps, i); return meanExec; |
double[] | meanAndStandardDeviation(final double[] inp, final int startIndex, final int pastEnd) Calculates the mean and standard deviation of an array of double if (startIndex < 0) throw new IllegalArgumentException("startIndex must be >= 0"); if (pastEnd > inp.length) throw new IllegalArgumentException("pastEnd must be <= inp.length"); if (startIndex >= pastEnd) throw new IllegalArgumentException("pastEnd must be > startIndex"); double sum_y = 0.0; double sum_ymean = 0.0; ... |