code: public static double stddev(int[] values) {
          double mean = mean(values);
          double sum = 0d;
          for (int i : values) {
              double d = i - mean;
              sum += d*d;
          }
          return Math.sqrt(sum / values.length);
      }
docs: Returns the standard deviation of the values in the int array