Files
sjy01-image-proc/vendor/gonum.org/v1/gonum/stat/distuv/general.go
2024-10-24 15:46:01 +08:00

25 lines
801 B
Go

// 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
)