|
Boost Users : |
Subject: Re: [Boost-users] Random library, discrete distribution
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-05 20:15:33
> request for it or not?
A multinomial distribution? Sure, common enough that I would use it. I
would use std::partial_sum and std::distance and return only idx.
Perhaps have an option to sort the weights for greater performance. Thanks.
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