Normal distribution

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 20 08:31:34 PST 2016


On Saturday, 20 February 2016 at 14:01:22 UTC, Andrei 
Alexandrescu wrote:
> Do we have a good quality converter of uniform numbers to 
> Gaussian-distributed numbers around? -- Andrei

There is this, from years ago: 
https://github.com/DlangScience/dstats/blob/master/source/dstats/random.d#L266
and the range wrappers also in that module.

There is also of course
https://github.com/WebDrake/hap/blob/master/source/hap/random/distribution.d#L507

But as you will remember from many messages from Joseph Rushton 
Wakeling, he's been blocked by difficulties with the range API, 
which also apply to the dstats version.


More information about the Digitalmars-d mailing list