def test_b_summand_is_positive_when_j_is_higher_comparison_point(self): res = b_summand( f=self.default_f, j=0, comparison=self.default_comparison, sigma=self.default_sigma, ) self.assertAlmostEqual(res, .159290823)
def test_b_summand_is_negative_when_j_is_lower_comparison_point(self): res = b_summand( f=self.default_f, j=2, comparison=self.default_comparison, sigma=self.default_sigma, ) self.assertAlmostEqual(res, -.159290823)
def test_b_summand_is_0_when_j_not_in_comparison(self): res = b_summand( f=self.default_f, j=1, comparison=self.default_comparison, sigma=self.default_sigma, ) self.assertAlmostEqual(res, 0.0)