Search results
2 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight, and every item is sampled exactly once (without repetition or replacement). The sampling method utilizes a binary-search optimization, mak
- weight
- weighted
- weighted-random
- sample
- sampler
- weighted-sampler
- sampling
- without-replacement
- no-replacement
- non-replacement
- replacement
- without-repetition
- no-repetition
- random-select
- View more
published version 1.0.1, 3 months ago0 dependents licensed under $Apache-2.0
28
An efficient random item sampler that ensures O(1) sampling complexity, and equal selection probability for all items across cycles. Each cycle ensures unique, non-repeating item selections, with each item sampled only once per cycle. Upon cycle completio
- random
- item
- element
- sample
- samples
- sampler
- random-sampler
- random-select
- random-selector
- replacement
- no-replacement
- without-replacement
- no-repetition
- unique-samples
- View more
published version 1.0.0, 2 months ago0 dependents licensed under $Apache-2.0
20