Thread overview | |||||
---|---|---|---|---|---|
|
April 25, 2009 [Issue 2898] New: Allow RandomCover to sample both w/ and w/o replacement. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2898 Summary: Allow RandomCover to sample both w/ and w/o replacement. Product: D Version: 2.029 Platform: PC OS/Version: Windows Status: NEW Severity: enhancement Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: dsimcha@yahoo.com Currently, RandomCover only allows sampling without replacement. I have created a modified version, located at http://dsource.org/projects/scrapple/browser/trunk/rangeextra/randomcover.d , that also allows sampling a random access range with replacement as an infinite range. This is done by template overloading on w/ or w/o replacement. This version of RandomCover also fixes bug 2865 and, in the w/o replacement version, replaces the bool[] with a BitArray for better space efficiency. -- |
October 11, 2009 [Issue 2898] Allow RandomCover to sample both w/ and w/o replacement. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2898 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |andrei@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 05, 2011 [Issue 2898] Allow RandomCover to sample both w/ and w/o replacement. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2898 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|andrei@metalanguage.com |dsimcha@yahoo.com --- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-06-05 08:07:08 PDT --- David, I'm reassigning this to you. I've never had a need for random cover with replacement, but if you can collect enough evidence please make a pull request. Thanks! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation