Class: SSY

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

Direct Known Subclasses

SSX

Constant Summary

Constants included from TeguGears

TeguGears::REPOSITORY_CLASS

Instance Method Summary collapse

Methods included from TeguGears

included

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