Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

Projects in Awesome Lists tagged with weighted-select

A curated list of projects in awesome lists tagged with weighted-select .

https://github.com/ori88c/non-replacement-weighted-random-item-sampler

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, making it suitable for performance-demanding applications where the set of items is large.

binary-search js logn no-repetitions no-replacement nodejs non-replacement non-replacement-weighted-sampling sample-once typescript weighted-choice weighted-random weighted-random-choice weighted-random-pick weighted-random-sampling weighted-random-select weighted-sampler weighted-samples weighted-sampling weighted-select

Last synced: 29 Oct 2024

https://github.com/ori88c/weighted-random-item-sampler

A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight. The sampling method utilizes a binary search optimization, making it suitable for performance-demanding applications where the set of items is large and the sampling frequency is high.

binary-search nodejs random-choice sampler sampling select selector ts typescript weighted weighted-choice weighted-random weighted-sampler weighted-samples weighted-sampling weighted-select

Last synced: 21 Nov 2024