Adding dep files and dependencies.
This commit is contained in:
parent
45f9efa578
commit
b341c0a0e4
539 changed files with 313111 additions and 0 deletions
22
vendor/github.com/montanaflynn/stats/errors.go
generated
vendored
Normal file
22
vendor/github.com/montanaflynn/stats/errors.go
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
package stats
|
||||
|
||||
type statsErr struct {
|
||||
err string
|
||||
}
|
||||
|
||||
func (s statsErr) Error() string {
|
||||
return s.err
|
||||
}
|
||||
|
||||
// These are the package-wide error values.
|
||||
// All error identification should use these values.
|
||||
var (
|
||||
EmptyInput = statsErr{"Input must not be empty."}
|
||||
SampleSize = statsErr{"Samples number must be less than input length."}
|
||||
NaNErr = statsErr{"Not a number"}
|
||||
NegativeErr = statsErr{"Slice must not contain negative values."}
|
||||
ZeroErr = statsErr{"Slice must not contain zero values."}
|
||||
BoundsErr = statsErr{"Input is outside of range."}
|
||||
SizeErr = statsErr{"Slices must be the same length."}
|
||||
InfValue = statsErr{"Value is infinite."}
|
||||
)
|
Reference in a new issue