Skip to content

Commit 42d07f2

Browse files
committed
raw credit
1 parent b6b2006 commit 42d07f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ To <dfn>fairly allocate credit</dfn>, given a [=list=] of doubles |credit| and a
16931693
1. Let |rawNormalizedCredit| be the result of element-wise dividing each [=list/item=] in |credit| by |sumCredit|.
16941694
1. Let |normalizedCredit| be |rawNormalizedCredit|, with each [=list/item=] rounded towards positive Infinity and converted to an integer.
16951695
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.
16971697
1. [=list/iterate|For each=] |index| of |shuffledFractionalIndices|:
16981698
1. If the sum of |normalizedCredit|'s [=list/items=] is equal to |value|, [=iteration/break=].
16991699
1. Decrement |normalizedCredit|[|index|] by 1.

0 commit comments

Comments
 (0)