Class: Mean
Constant Summary
Constants included from TeguGears
Instance Method Summary collapse
Methods included from TeguGears
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 |