示例#1
0
 def test_compute_h_when_point_is_both_r_and_c(self):
     point_index = 2
     comp = a([2, 2])
     res = h(comp, point_index)
     self.assertAlmostEqual(res, 0.0)
示例#2
0
 def test_compute_h_when_point_is_neither_r_nor_c(self):
     point_index = 3
     comp = a([1, 4])
     res = h(comp, point_index)
     self.assertAlmostEqual(res, 0.0)
示例#3
0
 def test_compute_h_when_point_is_c(self):
     point_index = 4
     comp = a([1, 4])
     res = h(comp, point_index)
     self.assertAlmostEqual(res, -1.0)