Message197512
Should this really be implemented using the cumulative distribution and binary search algorithm? Vose's Alias Method has the same initialization and memory usage cost (O(n)), but is constant time to generate each sample.
An excellent tutorial is here: http://www.keithschwarz.com/darts-dice-coins/ |
|
Date |
User |
Action |
Args |
2013-09-12 02:57:46 | NeilGirdhar | set | recipients:
+ NeilGirdhar, tim.peters, rhettinger, mark.dickinson, pitrou, eli.bendersky, aisaac, westley.martinez, serhiy.storchaka, madison.may |
2013-09-12 02:57:46 | NeilGirdhar | set | messageid: <1378954666.54.0.586644776617.issue18844@psf.upfronthosting.co.za> |
2013-09-12 02:57:46 | NeilGirdhar | link | issue18844 messages |
2013-09-12 02:57:46 | NeilGirdhar | create | |
|