fixed dependencies
This commit is contained in:
32
vendor/gonum.org/v1/gonum/stat/distuv/interfaces.go
generated
vendored
Normal file
32
vendor/gonum.org/v1/gonum/stat/distuv/interfaces.go
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright ©2015 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
|
||||
|
||||
// LogProber wraps the LogProb method.
|
||||
type LogProber interface {
|
||||
// LogProb returns the natural logarithm of the
|
||||
// value of the probability density or probability
|
||||
// mass function at x.
|
||||
LogProb(x float64) float64
|
||||
}
|
||||
|
||||
// Rander wraps the Rand method.
|
||||
type Rander interface {
|
||||
// Rand returns a random sample drawn from the distribution.
|
||||
Rand() float64
|
||||
}
|
||||
|
||||
// RandLogProber is the interface that groups the Rander and LogProber methods.
|
||||
type RandLogProber interface {
|
||||
Rander
|
||||
LogProber
|
||||
}
|
||||
|
||||
// Quantiler wraps the Quantile method.
|
||||
type Quantiler interface {
|
||||
// Quantile returns the minimum value of x from amongst
|
||||
// all those values whose CDF value exceeds or equals p.
|
||||
Quantile(p float64) float64
|
||||
}
|
||||
Reference in New Issue
Block a user