Here you can find the source of getStandardDeviation(List
public static double getStandardDeviation(List<Double> list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static double getStandardDeviation(List<Double> list) { return Math.sqrt(getVariance(list)); }//www .j a v a2 s. com public static double getVariance(List<Double> list) { double mean = getMean(list); double accumulator = 0; for (double value : list) { accumulator += (value - mean) * (value - mean); } return accumulator / list.size(); } public static double getMean(List<Double> list) { double sum = 0.0; for (double value : list) { sum += value; } return sum / list.size(); } }