Sha256: 29529ad544819a77ea57d99af2c97acfaf249e2b89f303e75f384da0a506550f

Contents?: true

Size: 118 Bytes

Versions: 39

Compression:

Stored size: 118 Bytes

Contents

module Enumerable
 def ave
   sum = 0
   self.each{|value| sum += value}
   return sum.to_f/self.length
 end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
sane-0.24.6 lib/sane/array_ave.rb
sane-0.24.5 lib/sane/array_ave.rb
sane-0.24.4 lib/sane/array_ave.rb
sane-0.24.3 lib/sane/array_ave.rb
sane-0.23.6 lib/sane/array_ave.rb
sane-0.24.2 lib/sane/array_ave.rb
sane-0.24.1 lib/sane/array_ave.rb
sane-0.24.0 lib/sane/array_ave.rb
sane-0.23.5 lib/sane/array_ave.rb
sane-0.23.4 lib/sane/array_ave.rb
sane-0.23.3 lib/sane/array_ave.rb
sane-0.23.2 lib/sane/array_ave.rb
sane-0.23.1 lib/sane/array_ave.rb
sane-0.23.0 lib/sane/array_ave.rb
sane-0.22.0 lib/sane/array_ave.rb
sane-0.21.3 lib/sane/array_ave.rb
sane-0.21.2 lib/sane/array_ave.rb
sane-0.21.0 lib/sane/array_ave.rb
sane-0.20.3 lib/sane/array_ave.rb
sane-0.20.2 lib/sane/array_ave.rb