From 7e46298b9c2656fbd9210a27c73c6e91a587a586 Mon Sep 17 00:00:00 2001 From: Rieman Li Date: Tue, 6 Feb 2024 01:37:02 +0000 Subject: [PATCH] Fix wrong assignment in computeMetricVariance for Frequency --- .../wfanet/measurement/measurementconsumer/stats/Variances.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/wfanet/measurement/measurementconsumer/stats/Variances.kt b/src/main/kotlin/org/wfanet/measurement/measurementconsumer/stats/Variances.kt index 61c8fbf108d..455a76731ce 100644 --- a/src/main/kotlin/org/wfanet/measurement/measurementconsumer/stats/Variances.kt +++ b/src/main/kotlin/org/wfanet/measurement/measurementconsumer/stats/Variances.kt @@ -627,7 +627,7 @@ object VariancesImpl : Variances { return FrequencyVariances( relativeVariances = frequencyVariances.relativeVariances.mapValues { coefficient * it.value }, kPlusRelativeVariances = - frequencyVariances.relativeVariances.mapValues { coefficient * it.value }, + frequencyVariances.kPlusRelativeVariances.mapValues { coefficient * it.value }, countVariances = frequencyVariances.countVariances.mapValues { coefficient * it.value }, kPlusCountVariances = frequencyVariances.kPlusCountVariances.mapValues { coefficient * it.value },