code: public static double sum(final Iterable<Double> values) {
      double ret = 0.0;
      for (final double d : values) {
        ret += d;
      }
      return ret;
    }
docs: Sums an iterable of non-null {@code Doubles}.