Search results
2 packages found
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, a month ago
Maintenance: 33%. Quality: 52%. Popularity: 1%.
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, 12 days ago
Maintenance: None. Quality: 52%. Popularity: None.