コード例 #1
0
 def test_wrap_around_l2_discrepancy(self):
     X = np.loadtxt(path_to_resources("discrepancy.x"))
     self.assertAlmostEqual(wrap_around_l2_discrepancy(X), CORRECT["wrap_around_l2_discrepancy"])
コード例 #2
0
 def test_modified_l2_discrepancy(self):
     X = np.loadtxt(path_to_resources("discrepancy.x"))
     self.assertAlmostEqual(modified_l2_discrepancy(X), CORRECT["modified_l2_discrepancy"])
コード例 #3
0
 def test_symmetric_l2_discrepancy(self):
     X = np.loadtxt(path_to_resources("discrepancy.x"))
     self.assertAlmostEqual(symmetric_l2_discrepancy(X), CORRECT["symmetric_l2_discrepancy"])
コード例 #4
0
 def test_l2_star_discrepancy(self):
     X = np.loadtxt(path_to_resources("discrepancy.x"))
     self.assertAlmostEqual(l2_star_discrepancy(X), CORRECT["l2_star_discrepancy"])