(self, axis=None, max_theta=180, max_theta2=15)
| 142 | |
| 143 | class RandomRotation: |
| 144 | def __init__(self, axis=None, max_theta=180, max_theta2=15): |
| 145 | self.axis = axis |
| 146 | self.max_theta = max_theta # Rotation around axis |
| 147 | self.max_theta2 = max_theta2 # Smaller rotation in random direction |
| 148 | |
| 149 | def _M(self, axis, theta): |
| 150 | return expm(np.cross(np.eye(3), axis / norm(axis) * theta)).astype(np.float32) |
nothing calls this directly
no outgoing calls
no test coverage detected