Versions in this module Expand all Collapse all v1 v1.0.0 Aug 4, 2020 Changes in this version + const Inf + const NaN + const NegInf + func PDF(d DistP, a, b float64) (p float64) + type Binomial struct + type Continuous interface + Float64 func() float64 + func Highpass(c Continuous, low float64) Continuous + func Lowpass(c Continuous, high float64) Continuous + func Midpass(c Continuous, low, high float64) Continuous + type Discrete interface + Int63 func() int64 + func Ceil(c Continuous) Discrete + func Floor(c Continuous) Discrete + func Round(c Continuous) Discrete + type Dist interface + Q func(p float64) (x float64) + type DistP interface + P func(x float64) (p float64) + String func() string + type Exponential struct + func NewExponential(s rand.Source, lambda float64) *Exponential + func (e *Exponential) Float64() float64 + func (e *Exponential) Mean() float64 + func (e *Exponential) P(x float64) float64 + func (e *Exponential) Q(p float64) float64 + func (e *Exponential) String() string + type HyperExponential struct + func NewHyperExponential(s rand.Source, probs, lambdas []float64) *HyperExponential + func (e *HyperExponential) Float64() float64 + func (e *HyperExponential) Mean() float64 + func (e *HyperExponential) SecondMoment() float64 + func (e *HyperExponential) String() string + func (e *HyperExponential) Var() float64 + type LogNormal struct + func NewLogNormal(rs rand.Source, m, s float64) *LogNormal + func (n *LogNormal) Float64() float64 + func (n *LogNormal) Mean() float64 + func (n *LogNormal) Std() float64 + func (n *LogNormal) String() string + func (n *LogNormal) Var() float64 + func (n *LogNormal) Z(x float64) float64 + type Normal struct + func NewNormal(s rand.Source, mean, std float64) *Normal + func (n *Normal) Float64() float64 + func (n *Normal) Mean() float64 + func (n *Normal) Std() float64 + func (n *Normal) String() string + func (n *Normal) Var() float64 + func (n *Normal) Z(x float64) float64 + type Null struct + func NewNull() *Null + func (n Null) Float64() float64 + func (n Null) Int63() int64 + func (n Null) Mean() float64 + func (n Null) Std() float64 + func (n Null) String() string + func (n Null) Var() float64 + type Poisson struct + func NewPoisson(s rand.Source, lambda float64) *Poisson + func (p Poisson) Int63() int64 + func (p Poisson) Mean() float64 + func (p Poisson) String() string + func (p Poisson) Var() float64 + type Stairs struct + func NewStairs(s rand.Source, p ...float64) *Stairs + func (s *Stairs) Int63() int64 + func (s *Stairs) Mean() float64 + func (s *Stairs) P(x int64) (p float64) + func (s *Stairs) Q(p float64) (x float64) + func (s *Stairs) String() string + type Uniform struct + func NewUniform(s rand.Source, a, b float64) *Uniform + func (u *Uniform) Float64() float64 + func (u *Uniform) Mean() float64 + func (u *Uniform) P(x float64) (p float64) + func (u *Uniform) Q(p float64) (x float64) + func (u *Uniform) String() string + type UniformDiscrete struct + func NewUniformDiscrete(s rand.Source, a, b int64) *UniformDiscrete + func (u *UniformDiscrete) Int63() int64 + func (u *UniformDiscrete) Mean() float64 + func (u *UniformDiscrete) P(x int64) (p float64) + func (u *UniformDiscrete) Q(p float64) (x float64) + func (u *UniformDiscrete) String() string