Sha256: 270338a5a3a36775f5a8ce11d1e7cc3f5a208a1004d588b2c4152d3a7160faa8

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

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

require 'benchmark'
require 'statsample'
n=1000
a=n.times.map {|i| rand()*20}.to_scale
hg=Statsample::Graph::Histogram.new(a, :bins=>15)

rb=ReportBuilder.new
rb.add(a.histogram)
rb.add(hg)
puts rb.to_text

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
statsample-0.17.0 examples/histogram.rb