Sha256: 1a117b9a8f9cbada15f4e43975a0aa8aaae38c7d927fd91344ad1d29f6e563ec

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

#!/usr/bin/ruby
$:.unshift(File.dirname(__FILE__)+'/../lib/')
$:.unshift('/home/cdx/dev/reportbuilder/lib/')

require 'benchmark'
require 'statsample'
n=100
a=(n-1).times.map {|i| rand()*20+50}
b=n.times.map {|i| rand()*10+50}.to_scale
c=n.times.map {|i| rand()*5+50}.to_scale
 
a.push(30)
a=a.to_scale
sp=Statsample::Graph::Boxplot.new(:vectors=>[a,b,c],:width=>300, :height=>300, :groups=>%w{first first second}, :minimum=>0)
rb=ReportBuilder.new
rb.add(sp)
puts rb.to_text

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
statsample-0.18.0 examples/boxplot.rb
statsample-0.17.0 examples/boxplot.rb