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.20.1 lib/sane/array_ave.rb
sane-0.20.0 lib/sane/array_ave.rb
sane-0.19.1 lib/sane/array_ave.rb
sane-0.19.0 lib/sane/array_ave.rb
sane-0.18.0 lib/sane/array_ave.rb
sane-0.17.1 lib/sane/array_ave.rb
sane-0.17.0 lib/sane/array_ave.rb
sane-0.16.1 lib/sane/array_ave.rb
sane-0.16.0 lib/sane/array_ave.rb
sane-0.15.0 lib/sane/array_ave.rb
sane-0.14.0 lib/sane/array_ave.rb
sane-0.12.2 lib/sane/array_ave.rb
sane-0.12.0 lib/sane/array_ave.rb
sane-0.11.1 lib/sane/array_ave.rb
sane-0.11.0 lib/sane/array_ave.rb
sane-0.10.3 lib/sane/array_ave.rb
sane-0.10.2 lib/sane/array_ave.rb
sane-0.10.1 lib/sane/array_ave.rb
sane-0.10.0 lib/sane/array_ave.rb