# File lib/more/facets/math/mean.rb, line 6 def self.mean(array, &blk) s = array.size return 0.0 if s == 0 sum(array, &blk) / s end