Sha256: f38fbb4605c3cd96ca1862bf7bc21b5752abdd56382410021024caa4e0af4e1f
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
require File.dirname(__FILE__)+'/../lib/statsample' require 'test/unit' class StatsampleSrsTestCase < Test::Unit::TestCase def test_std_error if HAS_GSL assert_equal(384,Statsample::SRS.estimation_n0(0.05,0.5,0.95).to_i) assert_equal(108,Statsample::SRS.estimation_n(0.05,0.5,150,0.95).to_i) else puts "Statsample::SRS.estimation_n0 not tested (needs ruby-gsl)" end assert_in_delta(0.0289,Statsample::SRS.proportion_sd_kp_wor(0.5,100,150),0.001) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
statsample-0.3.0 | test/test_srs.rb |
statsample-0.3.1 | test/test_srs.rb |
statsample-0.3.2 | test/test_srs.rb |