1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

docs(variants): clarify weight distribution

This commit is contained in:
Thomas Heartman 2021-12-08 10:35:52 +01:00
parent aef303c3b9
commit 15c5997707

View File

@ -56,6 +56,8 @@ For instance, if you have three variable weight variants and two fixed weight va
2. Divide the remainder by the number of variable weight variants: 60 / 3 = 20
3. Assign each variable weight variant the same (up to rounding differences) weight: 20%
In the example above, 60 divides cleanly by three. In cases where the remainder doesn't divide evenly among the variable weight variants, Unleash will distribute it as evenly as it can to one decimal's precision. If you have three variable weight variants, they will be weighted at 33.4, 33.3, and 33.3 respectively, so that it adds up to 100.0.
#### Overrides
:::note