def test_draw_ulh_with_minuit(): np.random.seed(0) data = np.random.randn(1000) plt.figure() ulh = UnbinnedLH(gaussian, data) minuit = Minuit(ulh, mean=0, sigma=1) ulh.draw(minuit)
def test_ulh_with_parts(): np.random.seed(0) data = np.random.randn(10000) shifted = data + 3. data = np.append(data, [shifted]) g1 = rename(gaussian, ['x', 'lmu', 'lsigma']) g2 = rename(gaussian, ['x', 'rmu', 'rsigma']) allpdf = AddPdfNorm(g1, g2) ulh = UnbinnedLH(allpdf, data) ulh.draw(args=(0, 1, 3, 1, 0.5), parts=True)
def test_draw_ulh_extend(): np.random.seed(0) data = np.random.randn(1000) ulh = UnbinnedLH(Extended(gaussian), data, extended=True) ulh.draw(args=(0., 1., 1000))
def test_draw_ulh(): np.random.seed(0) data = np.random.randn(1000) ulh = UnbinnedLH(gaussian, data) ulh.draw(args=(0., 1.))
def test_draw_ulh_with_minuit(): np.random.seed(0) data = np.random.randn(1000) ulh = UnbinnedLH(gaussian, data) minuit = Minuit(ulh, mean=0, sigma=1) ulh.draw(minuit)