Update beorn7/perks to Fix off-by-one error for small sample sizes
Change-Id: I444b345743251a13252321df0f385503a4271234
This commit is contained in:
2
vendor/github.com/beorn7/perks/quantile/stream.go
generated
vendored
2
vendor/github.com/beorn7/perks/quantile/stream.go
generated
vendored
@@ -133,7 +133,7 @@ func (s *Stream) Query(q float64) float64 {
|
||||
if l == 0 {
|
||||
return 0
|
||||
}
|
||||
i := int(float64(l) * q)
|
||||
i := int(math.Ceil(float64(l) * q))
|
||||
if i > 0 {
|
||||
i -= 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user