Sha256: efb6c2fe9cd9521790b972ca7e09ee332725bea675d7cdd368e5ca603ab1a8e8

Contents?: true

Size: 417 Bytes

Versions: 12

Compression:

Stored size: 417 Bytes

Contents

$:.unshift(File.dirname(__FILE__)+'/../lib/')
require 'statsample'
require 'test/unit'

class StatsampleSrsTestCase < Test::Unit::TestCase
    def test_std_error
        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)
        assert_in_delta(0.0289,Statsample::SRS.proportion_sd_kp_wor(0.5,100,150),0.001)
    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
statsample-0.7.0 test/test_srs.rb
statsample-0.6.7 test/test_srs.rb
statsample-0.6.5 test/test_srs.rb
statsample-0.6.4 test/test_srs.rb
statsample-0.6.3 test/test_srs.rb
statsample-0.6.2 test/test_srs.rb
statsample-0.6.1 test/test_srs.rb
statsample-0.6.0 test/test_srs.rb
statsample-0.5.1 test/test_srs.rb
statsample-0.5.0 test/test_srs.rb
statsample-0.4.1 test/test_srs.rb
statsample-0.4.0 test/test_srs.rb