List of utility methods to do Standard Deviation Calculate
double | calcStdDeviation(double[] population) calc Std Deviation return Math.sqrt(calcVariance(population));
|
double | calcStdDeviation(int sampleCount, long total, long sumOfSquares) calc Std Deviation double result = 0; double variance = calcVariance(sampleCount, total, sumOfSquares); if (variance > 0) { result = Math.sqrt(variance); return result; |
double | computeStddev(double[] array, double mean) Computes the standard deviation given an array and its mean value double stddev = 0; for (int i = 0; i < array.length; i++) { stddev += Math.pow(array[i] - mean, 2); return Math.sqrt(stddev / array.length); |
double | computeStdDev(double[] results, double mean) compute Std Dev double stddev = 0; for (double single : results) stddev += (mean - single) * (mean - single); stddev = Math.sqrt(stddev / results.length); return stddev; |
float | computeStddev(float[] array, float mean) Computes the standard deviation given an array and its mean value float stddev = 0; for (int i = 0; i < array.length; i++) { stddev += Math.pow(array[i] - mean, 2); return (float) Math.sqrt(stddev / array.length); |