From e977b8a94cac63b93e49a1adf82c909ad6b2894b Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 12 Jul 2024 13:10:48 +0300 Subject: [PATCH] [#236] netmap: Remove unused field from `meanIQRAgg` It was there since the inception [1], but we never got to use it. [1] https://github.com/nspcc-dev/netmap/commit/5931284e07260e251ef758ad60aaa46c9bd7110c Signed-off-by: Evgenii Stratonikov --- netmap/aggregator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/netmap/aggregator.go b/netmap/aggregator.go index 6926b84..c4a43c1 100644 --- a/netmap/aggregator.go +++ b/netmap/aggregator.go @@ -26,7 +26,6 @@ type ( } meanIQRAgg struct { - k float64 arr []float64 } @@ -111,7 +110,6 @@ func (a *minAgg) Compute() float64 { } func (a *meanIQRAgg) clear() { - a.k = 0 a.arr = a.arr[:0] } @@ -135,8 +133,7 @@ func (a *meanIQRAgg) Compute() float64 { min, max = a.arr[0], a.arr[l-1] } else { start, end := l/minLn, l*3/minLn-1 - iqr := a.k * (a.arr[end] - a.arr[start]) - min, max = a.arr[start]-iqr, a.arr[end]+iqr + min, max = a.arr[start], a.arr[end] } count := 0