ran go mod vendor on the whole project
This commit is contained in:
parent
26f96f361f
commit
28d10d9d39
346 changed files with 12917 additions and 66931 deletions
8
vendor/github.com/montanaflynn/stats/percentile.go
generated
vendored
8
vendor/github.com/montanaflynn/stats/percentile.go
generated
vendored
|
@ -1,14 +1,12 @@
|
|||
package stats
|
||||
|
||||
import (
|
||||
"math"
|
||||
)
|
||||
import "math"
|
||||
|
||||
// Percentile finds the relative standing in a slice of floats
|
||||
func Percentile(input Float64Data, percent float64) (percentile float64, err error) {
|
||||
|
||||
if input.Len() == 0 {
|
||||
return math.NaN(), EmptyInputErr
|
||||
return math.NaN(), EmptyInput
|
||||
}
|
||||
|
||||
if percent <= 0 || percent > 100 {
|
||||
|
@ -54,7 +52,7 @@ func PercentileNearestRank(input Float64Data, percent float64) (percentile float
|
|||
|
||||
// Return an error for empty slices
|
||||
if il == 0 {
|
||||
return math.NaN(), EmptyInputErr
|
||||
return math.NaN(), EmptyInput
|
||||
}
|
||||
|
||||
// Return error for less than 0 or greater than 100 percentages
|
||||
|
|
Reference in a new issue