mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 15:16:59 +08:00
26 lines
682 B
Go
26 lines
682 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 provides univariate random distribution types.
|
|
package distuv // import "gonum.org/v1/gonum/stat/distuv"
|
|
|
|
import "math"
|
|
|
|
// Parameter represents a parameter of a probability distribution
|
|
type Parameter struct {
|
|
Name string
|
|
Value float64
|
|
}
|
|
|
|
var (
|
|
badPercentile = "distuv: percentile out of bounds"
|
|
badLength = "distuv: slice length mismatch"
|
|
badSuffStat = "distuv: wrong suffStat length"
|
|
badNoSamples = "distuv: must have at least one sample"
|
|
)
|
|
|
|
var (
|
|
expNegOneHalf = math.Exp(-0.5)
|
|
)
|