Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #66565 > unrolled thread

Re: random.sample with large weighted sample-sets? [SOLVED]

Started byTim Chase <python.list@tim.thechases.com>
First post2014-02-16 13:58 -0600
Last post2014-02-16 13:58 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: random.sample with large weighted sample-sets? [SOLVED] Tim Chase <python.list@tim.thechases.com> - 2014-02-16 13:58 -0600

#66565 — Re: random.sample with large weighted sample-sets? [SOLVED]

FromTim Chase <python.list@tim.thechases.com>
Date2014-02-16 13:58 -0600
SubjectRe: random.sample with large weighted sample-sets? [SOLVED]
Message-ID<mailman.7071.1392580651.18130.python-list@python.org>
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


[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web