Class: MaximumLikelihoodIntercept
- Includes:
- TeguGears
- Defined in:
- lib/examples/regression.rb
Constant Summary
Constants included from TeguGears
Instance Method Summary collapse
Methods included from TeguGears
Instance Method Details
#process(x, y) ⇒ Object
38 39 40 41 |
# File 'lib/examples/regression.rb', line 38 def process(x,y) raise ArgumentError, "x and y need to be the same size" unless x.size == y.size Mean.call(*y) - MaximumLikelihoodSlope.call(x,y) * Mean.call(*x) end |