Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InverseGamma ¶
InverseGamma is the inverse gamma distribution.
func NewInverseGamma ¶
func NewInverseGamma(shape, scale float64) (i *InverseGamma, err error)
NewInverseGamma constructs an InverseGamma, validating the provided parameters.
func (*InverseGamma) Mean ¶
func (i *InverseGamma) Mean() float64
Mean returns the first moment of the distribution, for shape > 1.
func (*InverseGamma) Variance ¶
func (i *InverseGamma) Variance() float64
Variance returns the second central moment of the distribution, for shape > 2.
type LogNormal ¶
LogNormal is the log normal distribution.
func NewLogNormal ¶
NewLogNormal creates a new lognormal distribution, ensuring first that the provided scale is strictly positive.
type NegBinomial ¶
NegBinomial is the negative binomial distribution.
type Normal ¶
Normal distribution defined by its mean and standard deviation.
func NewNormal ¶
NewNormal checks the input parameters and returns a Normal constructed using them, if they are valid.
Click to show internal directories.
Click to hide internal directories.