Sampling algorithms for D

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Thu Apr 12 09:59:19 PDT 2012


On 12/04/12 16:45, Joseph Rushton Wakeling wrote:
> What I thought I'd do is implement some clever algorithms for random sampling
> which I've already done in a C based on the GNU Scientific Library.

I noticed that there is already a randomSample class in std.random, which by the 
look of it is using Knuth's Algorithm S.  Would there be any interest in my 
adapting Vitter's Algorithms A and D (as in my library) for Phobos in order to 
make this function more efficient?


More information about the Digitalmars-d-learn mailing list