github.com/jgbaldwinbrown/perf@v0.1.1/pkg/stats/package.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package stats implements several statistical distributions, 6 // hypothesis tests, and functions for descriptive statistics. 7 // 8 // Currently stats is fairly small, but for what it does implement, it 9 // focuses on high quality, fast implementations with good, idiomatic 10 // Go APIs. 11 // 12 // This is a trimmed fork of github.com/aclements/go-moremath/stats. 13 package stats 14 15 import ( 16 "errors" 17 "math" 18 ) 19 20 var inf = math.Inf(1) 21 var nan = math.NaN() 22 23 // TODO: Put all errors in the same place and maybe unify them. 24 25 var ( 26 ErrSamplesEqual = errors.New("all samples are equal") 27 )