@@ -1513,8 +1513,8 @@ To <dfn>validate {{AttributionConversionOptions}}</dfn> |options|:
1513
1513
1. If |options|.{{AttributionConversionOptions/value}}
1514
1514
is greater than |options|.{{AttributionConversionOptions/maxValue}} ,
1515
1515
throw a {{RangeError}} .
1516
- 1. If |options|.{{AttributionConversionOptions}} .{{AttributionLogicOptions/credit}} [=map/exists=] :
1517
- 1. Set |credit| to |options|.{{AttributionConversionOptions}} .{{AttributionLogicOptions/credit}} .
1516
+ 1. If |options|.{{AttributionConversionOptions/logicOptions }} .{{AttributionLogicOptions/credit}} [=map/exists=] :
1517
+ 1. Set |credit| to |options|.{{AttributionConversionOptions/logicOptions }} .{{AttributionLogicOptions/credit}} .
1518
1518
1. If |credit| is not a [=list=] or [=list/is empty=] , throw a {{RangeError}} .
1519
1519
1. If any of the [=list/items=] of |credit| are less than or equal to 0, throw a {{RangeError}} .
1520
1520
1. If the [=list/size=] of |credit| exceeds an implementation-defined maximum, throw a {{RangeError}} .
@@ -1706,7 +1706,7 @@ To <dfn>fairly allocate credit</dfn>, given a [=list=] of doubles |credit| and a
1706
1706
1. Let |rawNormalizedCredit| be the result of element-wise dividing each [=list/item=] in |credit| by |sumCredit|.
1707
1707
1. Let |normalizedCredit| be |rawNormalizedCredit|, with each [=list/item=] rounded towards positive Infinity and converted to an integer.
1708
1708
1. Let |shuffledFractionalIndices| be [=list/get the indices|the indices=] of |credit|, ordered randomly.
1709
- 1. [=list/remove|Remove=] any index |i| from |shuffledFractionalIndices| where |rawNormalizedCredit|[|i|] has no fractional part.
1709
+ 1. [=list/remove|Remove=] all indices |i| from |shuffledFractionalIndices| where |rawNormalizedCredit|[|i|] has no fractional part.
1710
1710
1. [=list/iterate|For each=] |index| of |shuffledFractionalIndices|:
1711
1711
1. If the sum of |normalizedCredit|'s [=list/items=] is equal to |value|, [=iteration/break=] .
1712
1712
1. Decrement |normalizedCredit|[|index|] by 1.
0 commit comments