Exemplo n.º 1
0
    def test_binormalize(self):
        for A in self.cases:
            C = binormalize(A)

            alpha = abs(1.0 - C.multiply(C).sum(axis=1)).max()

            assert (alpha < 1e-4)
Exemplo n.º 2
0
    def test_binormalize(self):
        for A in self.cases:
            C = binormalize(A)

            alpha = abs(1.0-C.multiply(C).sum(axis=1)).max()

            assert(alpha < 1e-4)