Re: Most pythonic way of weighted random selection
- From: bearophileHUGS@xxxxxxxxx
- Date: Sat, 30 Aug 2008 10:01:25 -0700 (PDT)
Manuel Ebert, this may be related/useful:
http://code.activestate.com/recipes/498229/
Note that numpy has a bisection method/function that are probably
quite faster.
Bye,
bearophile
.
- References:
- Most pythonic way of weighted random selection
- From: Manuel Ebert
- Most pythonic way of weighted random selection
- Prev by Date: Re: Which is faster?
- Next by Date: wholesale air max 87 sneakers WWW.SNEAKERS-IN-CHINA.COM
- Previous by thread: Most pythonic way of weighted random selection
- Next by thread: Re: Picking up resource forks and extended attributes on Mac OS X ?!
- Index(es):