Class: Mean

Inherits:
Object show all
Includes:
TeguGears
Defined in:
lib/examples/regression.rb

Constant Summary

Constants included from TeguGears

TeguGears::REPOSITORY_CLASS

Instance Method Summary collapse

Methods included from TeguGears

included

Instance Method Details

#process(*x) ⇒ Object



23
24
25
# File 'lib/examples/regression.rb', line 23

def process(*x)
  x.inject{|s,e| s + e} / x.size.to_f
end