コード例 #1
0
 def test_rec_three_points(self):
     hyps = list(axis_aligned_hypotheses(self._2d[3]))
     for pp in [[False, False, False],
                [False, True, False], [False, True, False], [False, False, True],
                [True, True, False], [True, False, True],
                [True, True, True]]:
         self.assertTrue(assign_exists(self._2d[3], hyps, pp))
コード例 #2
0
 def test_rec_four_points(self):
     hyps = list(axis_aligned_hypotheses(self._2d[4]))
     self.assertEqual(14, len(hyps))
コード例 #3
0
 def test_rec_single_point(self):
     hyps = list(axis_aligned_hypotheses(self._2d[1]))
     self.assertTrue(assign_exists(self._2d[1], hyps, [True]))
     self.assertTrue(assign_exists(self._2d[1], hyps, [False]))