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

discrete_distribution

v1.0.1RubyGems· Ruby

Fork of aliastable by Paul J Sanchez. If a categorical distribution has k distinct values, traditional approaches will require O(k) work to pick an outcome with the correct probabilities. This algorithm uses conditional probability to construct a table which will yield outcomes with the correct probabilities, but in O(1) time.

The verdict
Abandoned. Last published 10 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
LicenseCopyleft
DepsZero deps
Maintenance
Last published 10 years ago.
Popularity
8 downloads / week
Security
No known advisories for this version (OSV).
License
LGPL-2.1
Dependencies
No runtime dependencies
Recent releases
  • 1.0.110 years ago