RubyGems Navigation menu

discrete_distribution 1.0.1

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.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 1.0.1 - March 08, 2016 (23.0 KB)

Development 相依性套件 (5):

bundler ~> 1.10
minitest >= 0
pry >= 0
pry-doc >= 0
rake ~> 10.0

擁有者:

作者:

  • Scott Steele

SHA 256 總和檢查碼:

= 複製 已複製

總下載次數 4,008

這個版本 4,008

版本发布:

授權:

LGPL-2.1

Ruby 版本需求: >= 0

相關連結: