File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1693,7 +1693,7 @@ To <dfn>fairly allocate credit</dfn>, given a [=list=] of doubles |credit| and a
1693
1693
1. Let |rawNormalizedCredit| be the result of element-wise dividing each [=list/item=] in |credit| by |sumCredit|.
1694
1694
1. Let |normalizedCredit| be |rawNormalizedCredit|, with each [=list/item=] rounded towards positive Infinity and converted to an integer.
1695
1695
1. Let |shuffledFractionalIndices| be [=list/get the indices|the indices=] of |credit|, ordered randomly.
1696
- 1. [=list/remove|Remove=] any index |i| from |shuffledFractionalIndices| where |normalizedCredit |[|i|] has no fractional part.
1696
+ 1. [=list/remove|Remove=] any index |i| from |shuffledFractionalIndices| where |rawNormalizedCredit |[|i|] has no fractional part.
1697
1697
1. [=list/iterate|For each=] |index| of |shuffledFractionalIndices|:
1698
1698
1. If the sum of |normalizedCredit|'s [=list/items=] is equal to |value|, [=iteration/break=] .
1699
1699
1. Decrement |normalizedCredit|[|index|] by 1.
You can’t perform that action at this time.
0 commit comments