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