def test_l1_norm(self): out = l1_normed(self.d2) self.assertTrue(np.abs(np.sum(np.abs(out))-1.0) < 1e-10)
def test_l1_norm(self): out = l1_normed(self.d2) self.failUnless(np.abs(np.sum(np.abs(out))-1.0) < 1e-10)