Esempio n. 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)
Esempio n. 2
0
 def test_rdegree_under_rotation(self):
     g = Group.randn_lin()
     assert np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree)
Esempio n. 3
0
 def test_rotation_invariant(self):
     g = Group.randn_lin()
     self.assertTrue(np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree))
Esempio n. 4
0
 def test_rotation_invariant(self):
     g = Group.randn_lin()
     self.assertTrue(
         np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree))
Esempio n. 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)
Esempio n. 6
0
 def test_rdegree_under_rotation(self):
     g = Group.randn_lin()
     assert np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree)