Categories: None [Edit]

discrete_distribution

https://rubygems.org/gems/discrete_distribution
https://github.com/scooter-dangle/discrete_distribution
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.

Total

Ranking: 141,422 of 192,720
Downloads: 4,354

Daily

Ranking: 105,271 of 192,704
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,404,881,006bundler
81,316,242,181rake
141,211,092,480minitest
72601,454,865pry
1,11742,270,617pry-doc

Owners

#GravatarHandle
1iconscottlsteele