Skip to content
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

UnitVector only transforms to positive hemisphere #66

Open
sethaxen opened this issue Dec 6, 2019 · 2 comments
Open

UnitVector only transforms to positive hemisphere #66

sethaxen opened this issue Dec 6, 2019 · 2 comments

Comments

@sethaxen
Copy link

sethaxen commented Dec 6, 2019

The current UnitVector transformation currently transforms an n-1 dimensional vector to an n dimensional unit vector. However, upon transformation, all resulting unit vectors lie on the "hemi-hypersphere", where the final dimension is strictly positive. This is a problem for any applications where the unit vectors across the whole sphere are needed (e.g. directional/orientational statistics)

Stan handles the unit vector transform with a simple trick. I've implemented a version of this with an explanation here and would be happy to adapt it for this package if you're willing.

@tpapp
Copy link
Owner

tpapp commented Dec 6, 2019

Thanks. Can you please help me with pointing out where this is in the Stan docs?

@sethaxen
Copy link
Author

sethaxen commented Dec 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants