예제 #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()