Method: Statsample::Regression::Simple.new_from_dataset
- Defined in:
- lib/statsample/regression/simple.rb
.new_from_dataset(ds, x, y, opts = Hash.new) ⇒ Object
Create a simple regression using a dataset and two vector names.
70 71 72 |
# File 'lib/statsample/regression/simple.rb', line 70 def new_from_dataset(ds,x,y, opts=Hash.new) new(:init_vectors,ds[x],ds[y], opts) end |