Documentation
¶
Overview ¶
Package distributions provides probability distributions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binomial ¶
Binomial represents a binomial distribution.
func NewBinomial ¶
NewBinomial creates a new binomial distribution.
type Normal ¶
type Normal struct {
Mean float64 // mean (μ)
Std float64 // standard deviation (σ)
// contains filtered or unexported fields
}
Normal represents a normal (Gaussian) distribution.
func StandardNormal ¶
func StandardNormal() *Normal
StandardNormal creates a standard normal distribution (mean=0, std=1).
func (*Normal) PPF ¶
PPF returns the percent point function (inverse CDF) at p. Also known as the quantile function.
type Uniform ¶
type Uniform struct {
Low float64 // lower bound
High float64 // upper bound
// contains filtered or unexported fields
}
Uniform represents a continuous uniform distribution.
func NewUniform ¶
NewUniform creates a new uniform distribution over [low, high].
Click to show internal directories.
Click to hide internal directories.