public static double stDeviation() { double sum = 0; double avg = Statistics.average(); for (int index = 0; index < A.length; index++){ sum += Math.pow((avg - A[index]),2); } sum = sum/(A.length-1); return Math.sqrt(sum); }