random.sample with large weighted sample-sets? [SOLVED]
Tim Chase
python.list at tim.thechases.com
Sun Feb 16 14:58:04 EST 2014
More information about the Python-list mailing list
Sun Feb 16 14:58:04 EST 2014
- Previous message (by thread): random.sample with large weighted sample-sets?
- Next message (by thread): random.sample with large weighted sample-sets?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2014-02-16 14:47, Terry Reedy wrote: > > 2) the data has to be sorted for bisect to work > > cumulative sums are automatically sorted. Ah, that they were *cumulative* was the key that I missed in my understanding. It makes sense now and works like a charm. Thanks to all who offered a hand in this thread. -tkc
- Previous message (by thread): random.sample with large weighted sample-sets?
- Next message (by thread): random.sample with large weighted sample-sets?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list