|
Boost Users : |
Subject: Re: [Boost-users] Random library, discrete distribution
From: Kevin Martin (kev82_at_[hidden])
Date: 2009-08-17 14:05:59
On 16 Aug 2009, at 06:55, er wrote:
> Hi, here's something related:
> https://svn.boost.org/svn/boost/sandbox/statistics/random/boost/random/multinomial_distribution.hpp
I think this is definitely needed in boost::random, and it seems to do
much more error checking and dealing with large weights than my
version does, so I will definitely change to using it once it makes it
into a normal library release (and I can persuade my HPC admin to
upgrade the library)
I think you should rename it categorical distribution though as it
only samples a single trial from the distribution. I believe the
multinomial distribution gives the probability of vectors arising when
n trials are performed.
Thanks,
Kevin Martin
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net