Sha256: 895893b68391c13c1ace2c7f54470a9a7e457a64fa8daf92e883431551cff908

Contents?: true

Size: 270 Bytes

Versions: 12

Compression:

Stored size: 270 Bytes

Contents

require 'rserve'

data_x=20.times.map{|i| rand(i)}
data_y=20.times.map{|i| rand(i)}
c = Rserve::Connection.new();
c.assign("x", data_x);
c.assign("y", data_y);
l = c.eval("lowess(x,y)").as_list
lx = l["x"].as_floats
ly = l["y"].as_floats
puts "lx:#{lx}"
puts "ly:#{ly}"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rserve-client-0.3.5 examples/lowless.rb
rserve-client-0.3.3 examples/lowless.rb
rserve-client-0.3.2 examples/lowless.rb
rserve-client-0.3.1 examples/lowless.rb
rserve-client-0.3.0 examples/lowless.rb
rserve-client-0.2.5 examples/lowless.rb
rserve-client-0.2.4 examples/lowless.rb
rserve-client-0.2.3 examples/lowless.rb
rserve-client-0.2.2 examples/lowless.rb
rserve-client-0.2.1 examples/lowless.rb
rserve-client-0.2.0 examples/lowless.rb
rserve-client-0.1.9 examples/lowless.rb