Sha256: c36e6426df353e3681c2015692f6d45cf0fbc584b456109f1e894ab588f5bf03
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
$:.unshift(File.dirname(__FILE__)+'/../lib/') require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
statsample-0.3.4 | test/test_srs.rb |
statsample-0.3.3 | test/test_srs.rb |