Here you can find the source of standardDeviation(List
public static double standardDeviation(List<Double> values)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static double standardDeviation(List<Double> values) { double sum = 0; double mean = mean(values); for (Double val : values) { sum += Math.pow(val - mean, 2); }//from w ww .ja v a2 s.c o m return Math.sqrt(sum / values.size()); } public static double mean(List<Double> values) { double sum = 0; for (Double val : values) { sum += val; } return sum / values.size(); } }