Files
gonum/stat/distuv/general.go
2017-08-16 13:54:16 +02:00

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