class MathUtil {

    public static double standardDeviation(int... values)
    {
        double average = average(values);
        double sumOfSquares = 0;
        double diff;
        for (int value : values)
        {
            diff = value - average;
            sumOfSquares += diff * diff;
        }
        return Math.sqrt(sumOfSquares / values.length);
    }

    private  MathUtil();

}