Sha256: 3d6ee17024017ffea66ec2b963e247bc25ed92f049765f37db7708e744490132

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

#!/usr/bin/ruby
$:.unshift(File.dirname(__FILE__)+'/../lib')
require 'statsample'
samples=100
a=samples.times.map {rand(100)}.to_scale
ds=Statsample::Dataset.new
20.times do |i|
        ds["v#{i}"]=a.collect {|v| v+rand(20)}.to_scale
end
ds.update_valid_data
rel=Statsample::Reliability::ItemAnalysis.new(ds)
puts rel.summary

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statsample-0.11.2 examples/reliability.rb
statsample-0.11.1 examples/reliability.rb
statsample-0.11.0 examples/reliability.rb