示例#1
0
 def test_l1_norm(self):
     out = l1_normed(self.d2)
     self.assertTrue(np.abs(np.sum(np.abs(out))-1.0) < 1e-10)
示例#2
0
 def test_l1_norm(self):
     out = l1_normed(self.d2)
     self.assertTrue(np.abs(np.sum(np.abs(out))-1.0) < 1e-10)
示例#3
0
 def test_l1_norm(self):
     out = l1_normed(self.d2)
     self.failUnless(np.abs(np.sum(np.abs(out))-1.0) < 1e-10)