Sha256: 5bbc12fd28dffe80ee281dbee4c2a32b49626009152f560bbd6e4d89041286b0

Contents?: true

Size: 340 Bytes

Versions: 16

Compression:

Stored size: 340 Bytes

Contents

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

require 'statsample'
a=1000.times.collect {rand}.to_scale
b=1000.times.collect {rand}.to_scale
c=1000.times.collect {rand}.to_scale
d=1000.times.collect {rand}.to_scale
ds={'a'=>a,'b'=>b,'c'=>c,'d'=>d}.to_dataset
cm=Statsample::Bivariate.correlation_matrix(ds)
puts cm.summary

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
statsample-0.13.1 examples/correlation_matrix.rb
statsample-0.13.0 examples/correlation_matrix.rb
statsample-0.12.0 examples/correlation_matrix.rb
statsample-0.11.2 examples/correlation_matrix.rb
statsample-0.11.1 examples/correlation_matrix.rb
statsample-0.11.0 examples/correlation_matrix.rb
statsample-0.10.0 examples/correlation_matrix.rb
statsample-0.9.0 examples/correlation_matrix.rb
statsample-0.8.2 examples/correlation_matrix.rb
statsample-0.8.1 examples/correlation_matrix.rb
statsample-0.8.0 examples/correlation_matrix.rb
statsample-0.7.0 demo/correlation_matrix.rb
statsample-0.6.7 demo/correlation_matrix.rb
statsample-0.6.5 demo/correlation_matrix.rb
statsample-0.6.4 demo/correlation_matrix.rb
statsample-0.6.3 demo/correlation_matrix.rb