BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

weighted_sampler

v1.1.1RubyGems· Ruby

Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights. You can pass an Array or a Hash with desired probabilities and use Module or Class API to pick samples. Please, see documentation in the repo https://gitlab.com/oleksiy/weighted_sampler

The verdict
Abandoned. Last published 6 years ago. No recent activity — look for a maintained alternative.
No recent activity — look for a maintained alternative.
Live from the RubyGems registry · derived rules, not AI
How it scores
MaintenanceAbandoned
PopularityNiche
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Last published 6 years ago.
Popularity
7 downloads / week
Security
No known advisories for this version (OSV).
License
MIT
Dependencies
No runtime dependencies
Recent releases
  • 1.1.16 years ago
  • 1.1.07 years ago
  • 1.0.37 years ago
  • 1.0.27 years ago
  • 1.0.17 years ago
  • 1.0.07 years ago
  • 0.0.18 years ago
weighted_sampler — Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights. You can pass an Array or a Hash with desired probabilities and use Module or Class API to pick samples. Please, see documentation in the repo https://gitlab.com/oleksiy/weighted_sampler (Ruby / RubyGems) · Modules