List of utility methods to do List std
double | std(List std double result = 0; double mu = average(iNumbers); for (Double number : iNumbers) result += Math.pow(number - mu, 2); result /= iNumbers.size(); return Math.sqrt(result); |
Double | std(List std Double accum = 0.0; Double dev = 0.0; Double accum2 = 0.0; Double len = (double) vector.size(); for (Double float1 : vector) { dev = float1 - avg; accum += dev * dev; accum2 += dev; ... |
double | stdDev(List extends Number> nums) Get the standard deviation. if (nums == null || nums.size() == 0) { throw new IllegalArgumentException(); return stdDev(nums, 0, nums.size()); |
double | stddev(List Calculate sample deviation if (observations.size() == 1) { return 0.0; double mean = 0.0; for (Double d : observations) { mean += d; mean = mean / observations.size(); ... |
double | stDev(final List Gets the standard deviation. return Math.sqrt(variance(list));
|
double | stdev(List stdev return stdev(values, mean(values));
|
Double | stdInt(List std Int List<Double> doubles = new ArrayList<Double>(elements.size()); for (Integer n : elements) { doubles.add(new Double(n)); return std(doubles); |
double | varianceDouble(List Variance double. double mean = meanDouble(list); double variance = 0; for (int i = 0; i < list.size(); i++) { double a = Math.pow(list.get(i) - mean, 2); variance += a; if (populationStandardDeviation) { return variance / list.size(); ... |