Categories: None [Edit]

aliastable

https://rubygems.org/gems/aliastable
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. Table generation requires O(k) time, but subsequent generation is done in O(1) time.

Total

Ranking: 46,523 of 192,186
Downloads: 25,583

Daily

Ranking: 127,038 of 192,156
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName

Owners

#GravatarHandle
1iconpjs