Chi-SquaredFit v0.5.0 Chi2fit.Distribution

Provides various distributions.

Link to this section Summary

Functions

The Bernoulli distribution

Distribution for flipping coins

Constant distribution

Distribution simulating a dice (1..6)

Distribution simulating the dice in the GetKanban V4 simulation game

The Erlang distribution

The exponential distribution

Returns the model for a name

The normal or Gauss distribution

Uniform distribution

Uniform distribution

Wald or Inverse Gauss distribution

The Wald cumulative distribution function

The Weibull distribution

The Weibull cumulative distribution function

Link to this section Types

Link to this type cdf()
cdf() :: number :: number
Link to this type distribution()
distribution() :: ... :: number

Link to this section Functions

Link to this function bernoulli(value)
bernoulli(value :: number) :: distribution

The Bernoulli distribution.

Link to this function coin(value)
coin(integer) :: distribution

Distribution for flipping coins.

Link to this function constant(average)
constant(number | Keyword.t) :: distribution

Constant distribution.

Link to this function dice(avg)
dice([] | number) :: distribution

Distribution simulating a dice (1..6)

Link to this function dice_gk4(avg)
dice_gk4([] | number) :: distribution

Distribution simulating the dice in the GetKanban V4 simulation game.

Link to this function erlang(mean, m)
erlang(mean :: number, m :: pos_integer) :: distribution

The Erlang distribution.

Link to this function exponential(list)
exponential(Keyword.t) :: distribution

The exponential distribution.

Link to this function model(name)
model(name :: String.t) :: [fun: cdf, df: pos_integer]

Returns the model for a name.

Link to this function normal(mean, sigma)
normal(mean :: number, sigma :: number) :: distribution

The normal or Gauss distribution

Uniform distribution.

Link to this function uniform(min, max)
uniform(min :: integer, max :: integer) :: distribution

Uniform distribution.

Link to this function wald(mu, lambda)
wald(mu :: number, lambda :: number) :: distribution

Wald or Inverse Gauss distribution.

Link to this function waldCDF(mu, lambda)
waldCDF(number, number) :: cdf

The Wald cumulative distribution function.

Link to this function weibull(alpha, beta)
weibull(number, number | Keyword.t) :: distribution

The Weibull distribution.

Link to this function weibullCDF(k, lambda)
weibullCDF(number, number) :: cdf

The Weibull cumulative distribution function.