|
|
|
@ -2025,7 +2025,7 @@ func (ev *evaluator) matrixIterSlice(
|
|
|
|
|
// (b) the number of samples is relatively small.
|
|
|
|
|
// so a linear search will be as fast as a binary search.
|
|
|
|
|
var drop int |
|
|
|
|
for drop = 0; floats[drop].T < mint; drop++ { // nolint:revive
|
|
|
|
|
for drop = 0; floats[drop].T < mint; drop++ { |
|
|
|
|
} |
|
|
|
|
ev.currentSamples -= drop |
|
|
|
|
copy(floats, floats[drop:]) |
|
|
|
@ -2047,7 +2047,7 @@ func (ev *evaluator) matrixIterSlice(
|
|
|
|
|
// (b) the number of samples is relatively small.
|
|
|
|
|
// so a linear search will be as fast as a binary search.
|
|
|
|
|
var drop int |
|
|
|
|
for drop = 0; histograms[drop].T < mint; drop++ { // nolint:revive
|
|
|
|
|
for drop = 0; histograms[drop].T < mint; drop++ { |
|
|
|
|
} |
|
|
|
|
copy(histograms, histograms[drop:]) |
|
|
|
|
histograms = histograms[:len(histograms)-drop] |
|
|
|
|