Exemple #1
0
 def test_centered_group(self):
     g = Group.randn_lin(mean=Lin(40, 50))
     gc = g.centered
     el = gc.ortensor.eigenlins
     assert el[0] == Lin(0, 90) and el[1] == Lin(90, 0) and el[2] == Lin(
         0, 0)
Exemple #2
0
 def test_rdegree_under_rotation(self):
     g = Group.randn_lin()
     assert np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree)
Exemple #3
0
 def test_rotation_invariant(self):
     g = Group.randn_lin()
     self.assertTrue(np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree))
Exemple #4
0
 def test_rotation_invariant(self):
     g = Group.randn_lin()
     self.assertTrue(
         np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree))
Exemple #5
0
 def test_centered_group(self):
     g = Group.randn_lin(mean=Lin(40, 50))
     gc = g.centered
     el = gc.ortensor.eigenlins
     assert el[0] == Lin(0, 90) and el[1] == Lin(90, 0) and el[2] == Lin(0, 0)
Exemple #6
0
 def test_rdegree_under_rotation(self):
     g = Group.randn_lin()
     assert np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree)