Lines Matching defs:sample
14 pick random sample
15 pick weighted random sample
85 "sample",
385 def sample(self, population, k, *, counts=None):
391 samples. This allows raffle winners (the sample) to be partitioned
396 selection in the sample.
401 sample(['red', 'blue'], counts=[4, 2], k=5)
405 sample(['red', 'red', 'red', 'red', 'blue', 'blue'], k=5)
407 To choose a sample from a range of integers, use range() for the
411 sample(range(10000000), 60)
451 selections = self.sample(range(total), k=k)
839 sample = _inst.sample