-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor the "random" method of Rotations (low-priority) #218
Comments
I haven't used orix/orix/quaternion/rotation.py Lines 531 to 547 in 05311f6
I'm not entierly sure how to implement the equations in the link, but I guess you do. The hypersphere point picking should be added as an alternative method to the existing one, I assume. |
The current version is correct, it's doing the Marsaglia (1972) method from: https://mathworld.wolfram.com/SpherePointPicking.html which gives the correct answer. However it's slower than the version I'll replace it with because it involves discarding entries (also it's a Consider this nothing more than house keeping that came up while I was working with some of these bits of the code. I'll implement the fix in my big bundle of things. |
It currently uses rejection based sampling, I would prefer the method described in:
https://mathworld.wolfram.com/HyperspherePointPicking.html
The text was updated successfully, but these errors were encountered: