[GSoC] Mir.random.flex - Generic non-uniform random sampling
Seb via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue Aug 23 06:01:29 PDT 2016
On Tuesday, 23 August 2016 at 12:12:30 UTC, Seb wrote:
> [...]
> I fixed that and also added how many samples were generated per
> run (10M), thanks!
Btw I quickly added the run-time for C++ (for G++ and clang++
with -O3) and it doesn't look that bad:
http://blog.mir.dlang.io/random/2016/08/22/transformed-density-rejection-sampling.html#sampling
https://github.com/libmir/mir/pull/307
Note that for comparison between languages the speed of the
random engine plays a major role and that superior performance
was never a top priority for this generic method (statistical
quality is far more important). However I will work more on being
faster than <random> for common distributions over the next weeks
;-)
More information about the Digitalmars-d-announce
mailing list