Class: SSY
Direct Known Subclasses
Constant Summary
Constants included from TeguGears
Instance Method Summary collapse
Methods included from TeguGears
Instance Method Details
#process(*y) ⇒ Object
3 4 5 6 |
# File 'lib/examples/regression.rb', line 3 def process(*y) y_mean = Mean.call(*y) y.inject{|s,e| s + (e - y_mean)**2} end |