-
Notifications
You must be signed in to change notification settings - Fork 421
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
limit the values of random sampling from the VonMises distribution to -pi ~ +pi #1061
Comments
Doesn't it work with mu set to 0? |
Ok so you mean a by default constructor VonMises()? |
Yes, a default constructor. Anyway, it seems VonMises is not available for Turing.jl uses. |
There is already a default constructor: VonMises() = VonMises(0.0, 1.0, check_args=false) |
Sorry, I was misunderstanding a meaning of default constructor. Usually, von Mises distribution is used for modelling circular data(domain : 0 ~ 2pi, or -pi ~+pi). VonMises() = VonMises(0.0, 1.0, check_args=false) is -pi ~ +pi just because mu is 0. |
@matbesancon |
I want to limit the values of random sampling from the VonMises distribution to -pi ~ +pi.
I have some circular data which the domain is -pi ~ +pi.
I want to model the data by using Distributions.jl and Turing.jl.
However, the domain of VonMises(mu, kappa) seems to be mu-pi ~ mu+pi.
I could change pdf and cdf to -pi ~ + pi but I couldn't figure out how to change rand.
Which part of VonMisesSampler should be changed...?
Any suggestions are welcomed.
Thank you in advance.
The text was updated successfully, but these errors were encountered: