示例#1
0
def check_generate(name):
    check_cm(name)
    cm = ComponentModel(name)
    cm.realize_hp()
    params = cm.generate_post()
    b = BasicDistribution(name, pm=params)
    b.sample_data()
示例#2
0
def check_generate(name):
    check_cm(name)
    cm = ComponentModel(name)
    cm.realize_hp()
    params = cm.generate_post()
    b = BasicDistribution(name, pm=params)
    b.sample_data()
示例#3
0
def check_data_prob(name):
    b = BasicDistribution(name)
    p = b.data_prob(b.sample_data())
    ok_(p >= 0.)
示例#4
0
def check_sample_N(name):
    b = BasicDistribution(name)
    x = b.sample_data(10)
    assert_equal(len(x), 10)
示例#5
0
def check_sample(name):
    b = BasicDistribution(name)
    b.sample_data()
示例#6
0
def check_data_prob(name):
    b = BasicDistribution(name)
    p = b.data_prob(b.sample_data())
    ok_(p >= 0.)
示例#7
0
def check_sample_N(name):
    b = BasicDistribution(name)
    x = b.sample_data(10)
    assert_equal(len(x), 10)
示例#8
0
def check_sample(name):
    b = BasicDistribution(name)
    b.sample_data()