-
-
Notifications
You must be signed in to change notification settings - Fork 7
Multi-dimensional distributions #16
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
Comments
I am in favor of a
So we can have I don't think we need a new crate, there should be space in The questions we have to answer is if we want to have |
By Don't use You then want But I am wondering why we want this trait at all. Even |
With Fair, I forgot about the I used the trait a decent number of times in my code, imagine functions which do monte carlo estimations of some statistic. Yes is a lot of cases the distributions you will put into it will come from the same family (same distribution type) but this does not have to be the case and then the |
FYI I don't expect to have time to look at this for at least the next week. If you @benjamin-lieser (or anyone else) wish to make a start, please do, but no pressure.
I agree in that there does not seem to be much incentive to use a new crate. (Usage of a large new dependency or a lot of new code could be incentives.) |
Hi! I stumbled upon this discussion because I was interested in an implementation of sampling from a multivariate normal distribution. Is this something that could be implemented in rand_distr as Cheers |
Right now it's about getting the interface right. Then I would say the multidim normal would be a good addition and I would say it's fine to depend on either |
#14 argues the importance of a variable-length input
Dirichlet
distribution. rust-random/rand#1478 proposes aMultinomial
distribution.It is also questionable whether the existing
Distribution
trait is appropriate for these; it may be preferable to use a distinct trait like:Although:
output
, aside from panic. This may be the most appropriate option anyway, though I would expect at minimum that implementations do assert the length ofoutput
is exactly as expected.pub fn sample
methods to the distribution types.Questions:
rand_multi
crate? Or mayberand_distr::multi
module?MultiDistribution
trait? Or simply use methods on the distributions without a trait?The text was updated successfully, but these errors were encountered: