Module: Apache::Stat::Regression

Defined in:
lib/ruby-band/apache/stat/regression.rb

Class Method Summary collapse

Class Method Details

.simple_regression(vector) ⇒ Object

Create a simple regression model on the input data

  • Args :

    • vector -> must be a multidimensional array



11
12
13
14
15
16
17
# File 'lib/ruby-band/apache/stat/regression.rb', line 11

def self.simple_regression(vector)
  data = Core::Utils.bidimensional_to_double vector
  obj = SimpleRegression.new
  obj.addData(data)
  return obj
  # add Jruby methods for regression analysis
end