Unlimited
Overview
Unlimited Distributions are the simplest kind of distribution. Each item has an integer weight, and its probability of being sampled equals its weight divided by the total weight of all items in the distribution. Like their name implies, items in unlimited distributions can be sampled unlimited times.
Example
Suppose we have 3 types of balls defined by their color. For the unlimited distribution, we suppose that the supply of balls is unlimited, meaning we can sample as many times as we want. This distribution looks like:
Distribution A (Unlimited) | ||
---|---|---|
Color | Weight | Probability |
Red | 200 | 20% (200 / 1000) |
Blue | 300 | 30% (300 / 1000) |
Green | 500 | 50% (500 / 1000) |
Sampling from this distribution would yield red, blue, or green with probabilities 20%, 30%, and 50% respectively. Their weights and probabilities do not change after being sampled.
Advanced
Eligibility
Weight > 0.