aliastable 1.0.0
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:
=
instalar:
=
dependencias de Runtime (1):
skewheap
~> 1.0