This topic provides a reference table for all automatic type conversions to D-distribution, sorted by merit.
Direct Conversions
This section lists all direct
conversions to the D-distribution type. A direct conversion indicates a relation between very related types. Though note that even these conversions can fail due to out-of-bounds issues, or they may narrow due to reduction. Examples in this category include conversions from circles to curves, or from integers to numbers.
| From | Explanation |
|---|---|
| C-distribution | Rounds the limits of a uniform distribution to integers. |
| interval | Creates a uniform distribution matching the interval range. |
Fair Conversions
This section lists all fair
conversions to the D-distribution type. A fair conversion indicates the types involved are closely related in a data layout sense, though not necessarily in a conceptual sense. Although these conversions may fail or narrow, it is nevertheless considered decent practice to rely upon them. Examples in this category include conversions from booleans to integers, or from curves to intervals.
| From | Explanation |
|---|---|
| integer | Creates a uniform distribution from zero to the integer value. |
| integer (big) | Creates a uniform distribution from zero to the integer value. |
| number | Creates a uniform distribution from zero to the number value. |