-
Notifications
You must be signed in to change notification settings - Fork 10
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
Density for bounded distributions #36
Comments
Good catch. The only solution I can think is adding an argument "bounded" that you can set to |
On seconds thoughts maybe the argument that we want to add is |
Hmm, functionally it looks like calculating densities with kdensity and support doesn't look too different from just calculating regular densities and chopping them off, so for simplicity (not changing the code and adding the dependency) I think sticking with density and chopping the ends off makes sense. It'd still be good to call the option support for consistency. |
ok |
This is more of a general kdensity issue, but if you feed in a bounded distribution, the distribution plot will show/color area outside of the bounds, while the bar plot will (correctly) not reflect that.
e.g.
set.seed(123)
prior <- runif(100)
IMPosterior(prior = prior)
The text was updated successfully, but these errors were encountered: