gonum.org/v1/gonum@v0.14.0/stat/distuv/general.go (about)

     1  // Copyright ©2014 The Gonum 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 distuv
     6  
     7  // Parameter represents a parameter of a probability distribution
     8  type Parameter struct {
     9  	Name  string
    10  	Value float64
    11  }
    12  
    13  const (
    14  	badPercentile = "distuv: percentile out of bounds"
    15  	badLength     = "distuv: slice length mismatch"
    16  	badSuffStat   = "distuv: wrong suffStat length"
    17  	errNoSamples  = "distuv: must have at least one sample"
    18  )
    19  
    20  const (
    21  	expNegOneHalf   = 0.6065306597126334236037995349911804534419 // https://oeis.org/A092605
    22  	eulerMascheroni = 0.5772156649015328606065120900824024310421 // https://oeis.org/A001620
    23  	apery           = 1.2020569031595942853997381615114499907649 // https://oeis.org/A002117
    24  )