Normal distribution

Leandro Motta Barros via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 20 07:12:53 PST 2016


Maybe not good quality, but I like this one for my ludic purposes:


https://github.com/lmbarros/sbxs_dlang/blob/master/src/sbxs/rand/rng.d#L283

It is an implementation of an approximation algorithm that used to be
described here:

    http://home.online.no/~pjacklam/notes/invnorm/

But appears to be offline right now. On the Wayback Machine:


http://web.archive.org/web/20151030212409/http://home.online.no/~pjacklam/notes/invnorm
<http://web.archive.org/web/20151030212409/http://home.online.no/~pjacklam/notes/invnorm>

LMB


On Sat, Feb 20, 2016 at 12:01 PM, Andrei Alexandrescu via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> Do we have a good quality converter of uniform numbers to
> Gaussian-distributed numbers around? -- Andrei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160220/11f5509f/attachment.html>


More information about the Digitalmars-d mailing list