Sha256: c86390e1a142bb337ea2b8bb726367f7d35ab2d9270fa63552686b7b366ea07a
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
require 'rserve' data_x=Rserve::REXP::Wrapper.wrap(10.times.map{|i| rand(i)}) data_y=Rserve::REXP::Wrapper.wrap(10.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rserve-client-0.1.8 | examples/lowless.rb |