Normal distribution
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 26 12:15:10 PST 2016
On 2/26/16 2:32 PM, Joseph Rushton Wakeling wrote:
> Yup. The basic problem of getting this stuff into phobos are the
> architectural problems discussed in that talk. Unlike uniform
> distribution (which is straightforward to implement as a function, no
> questions asked), the normal distribution is best implemented as a range
> which keeps some state. So the reference-type/non-reference-type issues
> start becoming a factor.
Would it work to define Gaussian generators as regular generators (same
as the existing ones), which keep the uniform engine as a member? -- Andrei
More information about the Digitalmars-d
mailing list