blob: a3cc94bb272c728c1916f70b4ede3df5d4a16c2b [file] [log] [blame]
// 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 {
// 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