forked from TrueCloudLab/frostfs-sdk-go
[#236] netmap: Remove unused field from meanIQRAgg
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:
parent
6729f54c4e
commit
e977b8a94c
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue