netmap: Remove unused field from meanIQRAgg
Some checks failed
Tests and linters / Tests (1.20) (pull_request) Failing after 58s
DCO / DCO (pull_request) Failing after 1m9s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m13s
Tests and linters / Lint (pull_request) Successful in 2m48s

It was there since the inception [1], but we never got to use it.

[1] 5931284e07

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-07-12 13:10:48 +03:00
parent e79195a3bf
commit 1453fb21ce

View file

@ -26,7 +26,6 @@ type (
} }
meanIQRAgg struct { meanIQRAgg struct {
k float64
arr []float64 arr []float64
} }
@ -111,7 +110,6 @@ func (a *minAgg) Compute() float64 {
} }
func (a *meanIQRAgg) clear() { func (a *meanIQRAgg) clear() {
a.k = 0
a.arr = a.arr[:0] a.arr = a.arr[:0]
} }
@ -135,8 +133,7 @@ func (a *meanIQRAgg) Compute() float64 {
min, max = a.arr[0], a.arr[l-1] min, max = a.arr[0], a.arr[l-1]
} else { } else {
start, end := l/minLn, l*3/minLn-1 start, end := l/minLn, l*3/minLn-1
iqr := a.k * (a.arr[end] - a.arr[start]) min, max = a.arr[start], a.arr[end]
min, max = a.arr[start]-iqr, a.arr[end]+iqr
} }
count := 0 count := 0