aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gonum.org/v1/gonum/stat/distuv/general.go
blob: 5b78991943dae1cf17b96e9a2db530416c49eb94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright ©2014 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package distuv

// Parameter represents a parameter of a probability distribution
type Parameter struct {
	Name  string
	Value float64
}

const (
	badPercentile = "distuv: percentile out of bounds"
	badLength     = "distuv: slice length mismatch"
	badSuffStat   = "distuv: wrong suffStat length"
	errNoSamples  = "distuv: must have at least one sample"
)

const (
	expNegOneHalf   = 0.6065306597126334236037995349911804534419 // https://oeis.org/A092605
	eulerMascheroni = 0.5772156649015328606065120900824024310421 // https://oeis.org/A001620
	apery           = 1.2020569031595942853997381615114499907649 // https://oeis.org/A002117
)