Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.413 kb
require(File.expand_path(File.dirname(__FILE__)+'/helpers_tests.rb'))
class StatsampleStratifiedTestCase < MiniTest::Unit::TestCase
def initialize(*args)
super
end
def test_mean
a=[10,20,30,40,50]
b=[110,120,130,140]
pop=a+b
av=a.to_vector(:scale)
bv=b.to_vector(:scale)
popv=pop.to_vector(:scale)
assert_equal(popv.mean,Statsample::StratifiedSample.mean(av,bv))
end
end
Jump to Line
Something went wrong with that request. Please try again.