def test_Bn(self): from almiky.moments.functions import CharlierSobolevFunction x, order, alpha, beta, gamma = 3, 7, 0.5, 10, -2 func = CharlierSobolevFunction(alpha, beta, gamma) value = func.Bn(x, order) np.testing.assert_almost_equal(value, 12.423, 3)
def test_eval_order_equal_or_less_than_cero(self): from almiky.moments.functions import CharlierSobolevFunction x, order, alpha, beta, gamma = 3, 0, 0.5, 10, -2 func = CharlierSobolevFunction(alpha, beta, gamma) value = func.eval(x, order) self.assertEqual(value, 1)