[#236] netmap: Remove unused field from meanIQRAgg
Some checks failed
Tests and linters / Tests (1.20) (pull_request) Failing after 59s
DCO / DCO (pull_request) Successful in 1m11s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m12s
Tests and linters / Lint (pull_request) Successful in 2m11s

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 d3f1f9554c
commit 917ceecc5d

View file

@ -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