Sha256: b1d8ccf63ae38ea97ebe5e1943e3f9f94749b3aec4cbcae7134c08d4243a5be3

Contents?: true

Size: 371 Bytes

Versions: 13

Compression:

Stored size: 371 Bytes

Contents

require(File.dirname(__FILE__)+'/helpers_tests.rb')


class StatsampleSrsTestCase < MiniTest::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

13 entries across 13 versions & 1 rubygems

Version Path
statsample-0.18.0 test/test_srs.rb
statsample-0.17.0 test/test_srs.rb
statsample-0.16.0 test/test_srs.rb
statsample-0.15.1 test/test_srs.rb
statsample-0.15.0 test/test_srs.rb
statsample-0.14.1 test/test_srs.rb
statsample-0.14.0 test/test_srs.rb
statsample-0.13.1 test/test_srs.rb
statsample-0.13.0 test/test_srs.rb
statsample-0.12.0 test/test_srs.rb
statsample-0.11.2 test/test_srs.rb
statsample-0.11.1 test/test_srs.rb
statsample-0.11.0 test/test_srs.rb