Liking cljdoc? Tell your friends :D

fastmath.fitdistr.fit-specs

Fitting specifications of the distributions, the values of fastmath.random/fit-spec.

A specification is a map: :params (the fitted parameters with their domains and roles), :valid? (the validation of the data) and, optionally, :estimators (closed form estimators by method), :initial (starting values), :moments and :lmoments. See fastmath.random/fit-spec for the meaning of the keys.

The functions of :valid? take the sample as given by the user. The functions of :estimators and :initial take the sample as a sorted double[], they return a map of parameters or nil when the sample has no estimate (for example when the variance is too large for the method of moments). An estimator which is declared for fixed parameters (the :fixed set of its entry) takes also the map of the fixed parameters and returns the other parameters. A parameter with the :integer role may have a :range, a function of the sorted sample returning [lo hi start], the integers between which the parameter is searched from start.

The namespace has the data checks used by the specifications and one specification per distribution kind, defined with the distribution (fastmath.random.distributions for the Apache Commons Math classes and the custom distributions, fastmath.random for the constructors which wrap SSJ distributions).

Fitting specifications of the distributions, the values of `fastmath.random/fit-spec`.

A specification is a map: `:params` (the fitted parameters with their domains and roles), `:valid?` (the validation of the data) and, optionally, `:estimators` (closed form estimators by method), `:initial` (starting values), `:moments` and `:lmoments`. See `fastmath.random/fit-spec` for the meaning of the keys.

The functions of `:valid?` take the sample as given by the user. The functions of `:estimators` and `:initial` take the sample as a sorted `double[]`, they return a map of parameters or `nil` when the sample has no estimate (for example when the variance is too large for the method of moments). An estimator which is declared for fixed parameters (the `:fixed` set of its entry) takes also the map of the fixed parameters and returns the other parameters. A parameter with the `:integer` role may have a `:range`, a function of the sorted sample returning `[lo hi start]`, the integers between which the parameter is searched from `start`.

The namespace has the data checks used by the specifications and one specification per distribution kind, defined with the distribution (`fastmath.random.distributions` for the Apache Commons Math classes and the custom distributions, `fastmath.random` for the constructors which wrap SSJ distributions).
raw docstring

bbclj

Specification of the beta-binomial distribution with the gamlss parameters (:mu the mean probability, :sigma, :bd the integer binomial denominator, which has to be fixed).

Specification of the beta-binomial distribution with the gamlss parameters (`:mu` the mean probability, `:sigma`, `:bd` the integer binomial denominator, which has to be fixed).
raw docstring

betaclj

Specification of the beta distribution (:alpha, :beta): the method of moments has a closed form (when the variance is below mean * (1 - mean)).

Specification of the beta distribution (`:alpha`, `:beta`): the method of moments has a closed form (when the variance is below `mean * (1 - mean)`).
raw docstring

beta-binomialclj

Specification of the beta-binomial distribution (:alpha, :beta, :n the integer number of trials, which has to be fixed).

Specification of the beta-binomial distribution (`:alpha`, `:beta`, `:n` the integer number of trials, which has to be fixed).
raw docstring

beta-noncentralclj

Specification of the noncentral beta distribution (:alpha and :beta shapes, :ncp the noncentrality): the starting values are the method of moments estimates of the beta distribution and ncp 1. Slow: every evaluation creates a distribution as a mixture.

Specification of the noncentral beta distribution (`:alpha` and `:beta` shapes, `:ncp` the noncentrality): the starting values are the method of moments estimates of the beta distribution and `ncp` 1. Slow: every evaluation creates a distribution as a mixture.
raw docstring

beta-symmetricalclj

Specification of the symmetrical beta distribution (:alpha, :d is the precision of the computation and is not fitted): the starting value comes from the variance, 1 / (4 (2 alpha + 1)).

Specification of the symmetrical beta distribution (`:alpha`, `:d` is the precision of the computation and is not fitted): the starting value comes from the variance, `1 / (4 (2 alpha + 1))`.
raw docstring

binomialclj

Specification of the binomial distribution (:trials an integer, :p): for given trials the maximum likelihood estimate is mean / trials. Without fixed trials they are searched from the largest observation, starting from the method of moments estimate (a sample which is not under-dispersed has no finite maximum, the search stops at the limit of 1000000 trials).

Specification of the binomial distribution (`:trials` an integer, `:p`): for given trials the maximum likelihood estimate is `mean / trials`. Without fixed trials they are searched from the largest observation, starting from the method of moments estimate (a sample which is not under-dispersed has no finite maximum, the search stops at the limit of `1000000` trials).
raw docstring

cauchyclj

Specification of the Cauchy distribution (:median, :scale): no closed form, the starting values are the sample median and half of the interquartile range.

Specification of the Cauchy distribution (`:median`, `:scale`): no closed form, the starting values are the sample median and half of the interquartile range.
raw docstring

chiclj

Specification of the chi distribution (:nu the integer degrees of freedom): nu is searched from the value given by the sample mean, mean^2 + 1/2 (the mean of the distribution is about sqrt(nu - 1/2)).

Specification of the chi distribution (`:nu` the integer degrees of freedom): `nu` is searched from the value given by the sample mean, `mean^2 + 1/2` (the mean of the distribution is about `sqrt(nu - 1/2)`).
raw docstring

chi-squaredclj

Specification of the chi-squared distribution (:degrees-of-freedom): the starting value is the sample mean, which is the mean of the distribution.

Specification of the chi-squared distribution (`:degrees-of-freedom`): the starting value is the sample mean, which is the mean of the distribution.
raw docstring

chi-squared-noncentralclj

Specification of the noncentral chi-squared distribution (:nu the degrees of freedom, :lambda the noncentrality): the starting values come from the method of moments (mean nu + lambda, variance 2 (nu + 2 lambda)).

Specification of the noncentral chi-squared distribution (`:nu` the degrees of freedom, `:lambda` the noncentrality): the starting values come from the method of moments (mean `nu + lambda`, variance `2 (nu + 2 lambda)`).
raw docstring

count-data-errorclj

(count-data-error data min-count lower)

Message when data is not a sequence of at least min-count integers not below lower, otherwise nil.

Message when `data` is not a sequence of at least `min-count` integers not below `lower`, otherwise `nil`.
raw docstring

erlangclj

Specification of the Erlang distribution (:k the integer shape, which has to be fixed, :lambda the rate).

Specification of the Erlang distribution (`:k` the integer shape, which has to be fixed, `:lambda` the rate).
raw docstring

ex-gaussianclj

Specification of the ex-Gaussian distribution (:mu, :sigma, :tau): the starting values come from the method of moments.

Specification of the ex-Gaussian distribution (`:mu`, `:sigma`, `:tau`): the starting values come from the method of moments.
raw docstring

exgausclj

Specification of the ex-Gaussian distribution with the gamlss parameters (:mu, :sigma, :nu the mean of the exponential part): the starting values come from the method of moments.

Specification of the ex-Gaussian distribution with the gamlss parameters (`:mu`, `:sigma`, `:nu` the mean of the exponential part): the starting values come from the method of moments.
raw docstring

exponentialclj

Specification of the exponential distribution (:mean): the maximum likelihood estimate is the sample mean.

Specification of the exponential distribution (`:mean`): the maximum likelihood estimate is the sample mean.
raw docstring

fclj

Specification of the F distribution (:numerator-degrees-of-freedom, :denominator-degrees-of-freedom): the starting values come from the method of moments, or are 5 and 10 when the sample has no such estimate.

Specification of the F distribution (`:numerator-degrees-of-freedom`, `:denominator-degrees-of-freedom`): the starting values come from the method of moments, or are 5 and 10 when the sample has no such estimate.
raw docstring

f-noncentralclj

Specification of the noncentral F distribution (:df1 and :df2 degrees of freedom, :ncp the noncentrality): the starting values are the df2 from the mean when it is above 1 (or 10), df1 5 and ncp 1. Slow: every evaluation creates a distribution as a mixture.

Specification of the noncentral F distribution (`:df1` and `:df2` degrees of freedom, `:ncp` the noncentrality): the starting values are the `df2` from the mean when it is above 1 (or 10), `df1` 5 and `ncp` 1. Slow: every evaluation creates a distribution as a mixture.
raw docstring

fatigue-lifeclj

Specification of the fatigue life distribution (:alpha the lower end of the support, :beta the scale, :gamma the shape): the starting values put alpha a little below the minimum and use the modified moment estimates of the Birnbaum-Saunders distribution.

Specification of the fatigue life distribution (`:alpha` the lower end of the support, `:beta` the scale, `:gamma` the shape): the starting values put `alpha` a little below the minimum and use the modified moment estimates of the Birnbaum-Saunders distribution.
raw docstring

fishers-noncentral-hypergeometricclj

Specification of Fisher's noncentral hypergeometric distribution (:ns, :nf and :n integers which have to be fixed, :omega the odds ratio).

Specification of Fisher's noncentral hypergeometric distribution (`:ns`, `:nf` and `:n` integers which have to be fixed, `:omega` the odds ratio).
raw docstring

folded-normalclj

Specification of the folded normal distribution (:mu, not negative, :sigma of the normal distribution before the folding): the starting values are the mean and the standard deviation of the sample.

Specification of the folded normal distribution (`:mu`, not negative, `:sigma` of the normal distribution before the folding): the starting values are the mean and the standard deviation of the sample.
raw docstring

frechetclj

Specification of the Frechet distribution (:alpha the shape, :beta the scale, :delta the lower end of the support): the starting values put delta a little below the minimum and use the Gumbel distribution of the logarithms.

Specification of the Frechet distribution (`:alpha` the shape, `:beta` the scale, `:delta` the lower end of the support): the starting values put `delta` a little below the minimum and use the Gumbel distribution of the logarithms.
raw docstring

gammaclj

Specification of the gamma distribution (:shape, :scale): the method of moments has a closed form.

Specification of the gamma distribution (`:shape`, `:scale`): the method of moments has a closed form.
raw docstring

generalized-exponentialclj

Specification of the generalized exponential distribution (:alpha the shape, :lambda the rate): the starting values are the exponential ones.

Specification of the generalized exponential distribution (`:alpha` the shape, `:lambda` the rate): the starting values are the exponential ones.
raw docstring

generalized-extreme-valueclj

Specification of the generalized extreme value distribution (:mu, :sigma, :xi): the starting values are the L-moment estimates of Hosking, Wallis and Wood. The support has a bound on one side, depending on the sign of xi: the sample has to stay inside it.

Specification of the generalized extreme value distribution (`:mu`, `:sigma`, `:xi`): the starting values are the L-moment estimates of Hosking, Wallis and Wood. The support has a bound on one side, depending on the sign of `xi`: the sample has to stay inside it.
raw docstring

generalized-gammaclj

Specification of the generalized gamma distribution (:mu the scale, :sigma the dispersion, :nu the shape): the starting values are the gamma ones, nu 1.

Specification of the generalized gamma distribution (`:mu` the scale, `:sigma` the dispersion, `:nu` the shape): the starting values are the gamma ones, `nu` 1.
raw docstring

generalized-half-logisticclj

Specification of the generalized half-logistic distribution (:alpha the shape, :lambda the rate): the starting values are 1 and the reciprocal of the mean.

Specification of the generalized half-logistic distribution (`:alpha` the shape, `:lambda` the rate): the starting values are 1 and the reciprocal of the mean.
raw docstring

generalized-hyperbolicclj

Specification of the generalized hyperbolic distribution (:mu, :delta, :alpha and :beta, with |beta| < alpha, and :lambda): the starting values are those of the symmetrical normal inverse Gaussian distribution (lambda -1/2). Slow: every evaluation creates a distribution with a numerical quantile function.

Specification of the generalized hyperbolic distribution (`:mu`, `:delta`, `:alpha` and `:beta`, with `|beta| < alpha`, and `:lambda`): the starting values are those of the symmetrical normal inverse Gaussian distribution (`lambda` -1/2). Slow: every evaluation creates a distribution with a numerical quantile function.
raw docstring

generalized-inverse-gaussianclj

Specification of the generalized inverse Gaussian distribution (:chi, :psi, :lambda): the starting values are the ones of the inverse Gaussian distribution of the same mean and variance (lambda -1/2). Slow: every evaluation creates a distribution with a numerical quantile function.

Specification of the generalized inverse Gaussian distribution (`:chi`, `:psi`, `:lambda`): the starting values are the ones of the inverse Gaussian distribution of the same mean and variance (`lambda` -1/2). Slow: every evaluation creates a distribution with a numerical quantile function.
raw docstring

generalized-logisticclj

Specification of the generalized logistic distribution (:mu, :sigma, :alpha): the starting values are the logistic ones with alpha 1.

Specification of the generalized logistic distribution (`:mu`, `:sigma`, `:alpha`): the starting values are the logistic ones with `alpha` 1.
raw docstring

generalized-normalclj

Specification of the generalized normal distribution (:mu the location, :alpha the scale, :beta the shape): the starting values are the normal ones, beta 2.

Specification of the generalized normal distribution (`:mu` the location, `:alpha` the scale, `:beta` the shape): the starting values are the normal ones, `beta` 2.
raw docstring

generalized-paretoclj

Specification of the generalized Pareto distribution (:mu the lower end of the support, :sigma, :xi): the starting values put mu a little below the minimum and use the method of moments for the excesses.

Specification of the generalized Pareto distribution (`:mu` the lower end of the support, `:sigma`, `:xi`): the starting values put `mu` a little below the minimum and use the method of moments for the excesses.
raw docstring

geometricclj

Specification of the geometric distribution (:p, the number of failures before the first success): the maximum likelihood estimate is 1 / (1 + mean).

Specification of the geometric distribution (`:p`, the number of failures before the first success): the maximum likelihood estimate is `1 / (1 + mean)`.
raw docstring

gumbelclj

Specification of the Gumbel distribution of maxima (:mu, :beta): the starting values come from the method of moments.

Specification of the Gumbel distribution of maxima (`:mu`, `:beta`): the starting values come from the method of moments.
raw docstring

half-cauchyclj

Specification of the half-Cauchy distribution (:mu the lower end of the support, :scale): the starting values put mu a little below the minimum and the scale is the median distance from it.

Specification of the half-Cauchy distribution (`:mu` the lower end of the support, `:scale`): the starting values put `mu` a little below the minimum and the scale is the median distance from it.
raw docstring

half-logisticclj

Specification of the half-logistic distribution (:scale): the starting value comes from the mean, which is 2 ln(2) scale.

Specification of the half-logistic distribution (`:scale`): the starting value comes from the mean, which is `2 ln(2) scale`.
raw docstring

half-normalclj

Specification of the half-normal distribution (:mu the lower bound, :sigma): the maximum likelihood estimate is the sample minimum and the root mean square distance from it.

Specification of the half-normal distribution (`:mu` the lower bound, `:sigma`): the maximum likelihood estimate is the sample minimum and the root mean square distance from it.
raw docstring

hyperbolic-secantclj

Specification of the hyperbolic secant distribution (:mu, :sigma): the starting values are the sample mean and standard deviation.

Specification of the hyperbolic secant distribution (`:mu`, `:sigma`): the starting values are the sample mean and standard deviation.
raw docstring

hypoexponential-equalclj

Specification of the hypoexponential distribution with equally spaced rates (:n and :k integers which have to be fixed, :h the spacing).

Specification of the hypoexponential distribution with equally spaced rates (`:n` and `:k` integers which have to be fixed, `:h` the spacing).
raw docstring

inverse-gammaclj

Specification of the inverse gamma distribution (:alpha the shape, :beta the scale): the starting values come from the method of moments.

Specification of the inverse gamma distribution (`:alpha` the shape, `:beta` the scale): the starting values come from the method of moments.
raw docstring

inverse-gaussianclj

Specification of the inverse Gaussian distribution (:mu the mean, :lambda the shape): the maximum likelihood estimate is the sample mean and the reciprocal of the mean difference of 1 / x and 1 / mean.

Specification of the inverse Gaussian distribution (`:mu` the mean, `:lambda` the shape): the maximum likelihood estimate is the sample mean and the reciprocal of the mean difference of `1 / x` and `1 / mean`.
raw docstring

johnson-sbclj

Specification of the Johnson SB distribution (:gamma and :delta shapes, :xi the lower end of the support, :lambda the width of the support): no starting values, the parameters are found from the scan.

Specification of the Johnson SB distribution (`:gamma` and `:delta` shapes, `:xi` the lower end of the support, `:lambda` the width of the support): no starting values, the parameters are found from the scan.
raw docstring

johnson-slclj

Specification of the Johnson SL distribution (:gamma and :delta shapes, :xi the lower end of the support, :lambda the scale). gamma and lambda can't be told apart (only ln(lambda) - gamma / delta matters): fix one of them, for example {:fixed {:lambda 1.0}}.

Specification of the Johnson SL distribution (`:gamma` and `:delta` shapes, `:xi` the lower end of the support, `:lambda` the scale). `gamma` and `lambda` can't be told apart (only `ln(lambda) - gamma / delta` matters): fix one of them, for example `{:fixed {:lambda 1.0}}`.
raw docstring

johnson-suclj

Specification of the Johnson SU distribution (:gamma and :delta shapes, :xi location, :lambda scale): no starting values, the parameters are found from the scan.

Specification of the Johnson SU distribution (`:gamma` and `:delta` shapes, `:xi` location, `:lambda` scale): no starting values, the parameters are found from the scan.
raw docstring

laplaceclj

Specification of the Laplace distribution (:mu, :beta): the maximum likelihood estimate is the sample median and the mean absolute deviation from it.

Specification of the Laplace distribution (`:mu`, `:beta`): the maximum likelihood estimate is the sample median and the mean absolute deviation from it.
raw docstring

levyclj

Specification of the Levy distribution (:mu the lower end of the support, :c): the starting values put mu a little below the minimum and c is the maximum likelihood estimate for it.

Specification of the Levy distribution (`:mu` the lower end of the support, `:c`): the starting values put `mu` a little below the minimum and `c` is the maximum likelihood estimate for it.
raw docstring

log-logisticclj

Specification of the log-logistic distribution (:alpha the shape, :beta the scale, the median): the starting values come from the median and the quartiles.

Specification of the log-logistic distribution (`:alpha` the shape, `:beta` the scale, the median): the starting values come from the median and the quartiles.
raw docstring

log-normalclj

Specification of the log-normal distribution (:scale the mean and :shape the standard deviation of the logarithm): the maximum likelihood estimate is the mean and the population standard deviation of the logarithms.

Specification of the log-normal distribution (`:scale` the mean and `:shape` the standard deviation of the logarithm): the maximum likelihood estimate is the mean and the population standard deviation of the logarithms.
raw docstring

logarithmicclj

Specification of the logarithmic distribution (:p, support from 1): the starting value is chosen from the sample mean, 1 - 1 / mean kept away from the ends.

Specification of the logarithmic distribution (`:p`, support from `1`): the starting value is chosen from the sample mean, `1 - 1 / mean` kept away from the ends.
raw docstring

logisticclj

Specification of the logistic distribution (:mu, :s): the starting values are the sample mean and the scale from the standard deviation.

Specification of the logistic distribution (`:mu`, `:s`): the starting values are the sample mean and the scale from the standard deviation.
raw docstring

nakagamiclj

Specification of the Nakagami distribution (:mu the shape, not below 0.5, :omega the spread): the starting values come from the method of moments.

Specification of the Nakagami distribution (`:mu` the shape, not below `0.5`, `:omega` the spread): the starting values come from the method of moments.
raw docstring

nbiclj

Specification of the negative binomial distribution type I (:mu the mean, :sigma, the variance is mu + sigma mu^2): the starting values come from the method of moments.

Specification of the negative binomial distribution type I (`:mu` the mean, `:sigma`, the variance is `mu + sigma mu^2`): the starting values come from the method of moments.
raw docstring

nbiiclj

Specification of the negative binomial distribution type II (:mu the mean, :sigma, the variance is mu (1 + sigma)): the starting values come from the method of moments.

Specification of the negative binomial distribution type II (`:mu` the mean, `:sigma`, the variance is `mu (1 + sigma)`): the starting values come from the method of moments.
raw docstring

negative-binomialclj

Specification of the negative binomial distribution (:r real, :p): the starting values come from the method of moments.

Specification of the negative binomial distribution (`:r` real, `:p`): the starting values come from the method of moments.
raw docstring

non-negative-data-errorclj

(non-negative-data-error data min-count)

Message when data is not a sequence of at least min-count finite numbers not below 0, otherwise nil.

Message when `data` is not a sequence of at least `min-count` finite numbers not below `0`, otherwise `nil`.
raw docstring

normalclj

Specification of the normal distribution (:mu, :sd): the maximum likelihood estimate is the sample mean and the population standard deviation.

Specification of the normal distribution (`:mu`, `:sd`): the maximum likelihood estimate is the sample mean and the population standard deviation.
raw docstring

normal-inverse-gaussianclj

Specification of the normal inverse Gaussian distribution (:alpha, :beta with |beta| < alpha, :mu, :delta): the starting values are those of the symmetrical distribution with the variance and the kurtosis of the sample. Slow: every evaluation creates a distribution with a numerical quantile function.

Specification of the normal inverse Gaussian distribution (`:alpha`, `:beta` with `|beta| < alpha`, `:mu`, `:delta`): the starting values are those of the symmetrical distribution with the variance and the kurtosis of the sample. Slow: every evaluation creates a distribution with a numerical quantile function.
raw docstring

paretoclj

Specification of the Pareto distribution (:scale the lowest value, :shape): the maximum likelihood estimate is the sample minimum and the reciprocal of the mean logarithm of the observations relative to it.

Specification of the Pareto distribution (`:scale` the lowest value, `:shape`): the maximum likelihood estimate is the sample minimum and the reciprocal of the mean logarithm of the observations relative to it.
raw docstring

pascalclj

Specification of the Pascal distribution (:r the integer number of successes, :p; the number of failures before r successes): for given r the maximum likelihood estimate is r / (r + mean). Without fixed r it is searched, starting from the method of moments estimate (up to 1000000).

Specification of the Pascal distribution (`:r` the integer number of successes, `:p`; the number of failures before `r` successes): for given `r` the maximum likelihood estimate is `r / (r + mean)`. Without fixed `r` it is searched, starting from the method of moments estimate (up to `1000000`).
raw docstring

pearson-6clj

Specification of the Pearson type VI distribution (:alpha1 and :alpha2 shapes, :beta the scale): no starting values, the parameters are found from the scan.

Specification of the Pearson type VI distribution (`:alpha1` and `:alpha2` shapes, `:beta` the scale): no starting values, the parameters are found from the scan.
raw docstring

poissonclj

Specification of the Poisson distribution (:p the rate): the maximum likelihood estimate is the sample mean.

Specification of the Poisson distribution (`:p` the rate): the maximum likelihood estimate is the sample mean.
raw docstring

positive-data-errorclj

(positive-data-error data min-count)

Message when data is not a sequence of at least min-count finite numbers above 0, otherwise nil.

Message when `data` is not a sequence of at least `min-count` finite numbers above `0`, otherwise `nil`.
raw docstring

powerclj

Specification of the power-function distribution (:a the lower end, :b the upper end, :c the shape): the starting values put the ends slightly outside of the sample and c is the maximum likelihood estimate for them.

Specification of the power-function distribution (`:a` the lower end, `:b` the upper end, `:c` the shape): the starting values put the ends slightly outside of the sample and `c` is the maximum likelihood estimate for them.
raw docstring

rayleighclj

Specification of the Rayleigh distribution (:a the location, :beta the scale): no closed form with a free location, the starting values put the location slightly below the sample minimum.

Specification of the Rayleigh distribution (`:a` the location, `:beta` the scale): no closed form with a free location, the starting values put the location slightly below the sample minimum.
raw docstring

real-data-errorclj

(real-data-error data min-count)

Message when data is not a sequence of at least min-count finite numbers, otherwise nil.

Message when `data` is not a sequence of at least `min-count` finite numbers, otherwise `nil`.
raw docstring

reciprocalclj

Specification of the reciprocal distribution (:a the lower end, :b the upper end): the maximum likelihood estimate is the sample minimum and maximum.

Specification of the reciprocal distribution (`:a` the lower end, `:b` the upper end): the maximum likelihood estimate is the sample minimum and maximum.
raw docstring

tclj

Specification of the Student t distribution (:degrees-of-freedom, the standard t distribution has no location and scale): the starting value comes from the excess kurtosis of the sample (6 / (df - 4)), or is 30 for a sample which is not heavy-tailed.

Specification of the Student t distribution (`:degrees-of-freedom`, the standard t distribution has no location and scale): the starting value comes from the excess kurtosis of the sample (`6 / (df - 4)`), or is 30 for a sample which is not heavy-tailed.
raw docstring

t-noncentralclj

Specification of the noncentral Student t distribution (:df the degrees of freedom, :ncp the noncentrality): the starting values are 10 and the sample mean. Slow: every evaluation creates a distribution as a mixture.

Specification of the noncentral Student t distribution (`:df` the degrees of freedom, `:ncp` the noncentrality): the starting values are 10 and the sample mean. Slow: every evaluation creates a distribution as a mixture.
raw docstring

triangularclj

Specification of the triangular distribution (:a the lower end, :c the mode, :b the upper end): the starting values put the ends slightly outside of the sample and the mode from the mean.

Specification of the triangular distribution (`:a` the lower end, `:c` the mode, `:b` the upper end): the starting values put the ends slightly outside of the sample and the mode from the mean.
raw docstring

uniform-intclj

Specification of the discrete uniform distribution (:lower, :upper, integers): the maximum likelihood estimate is the sample minimum and maximum.

Specification of the discrete uniform distribution (`:lower`, `:upper`, integers): the maximum likelihood estimate is the sample minimum and maximum.
raw docstring

uniform-realclj

Specification of the continuous uniform distribution (:lower, :upper): the maximum likelihood estimate is the sample minimum and maximum.

Specification of the continuous uniform distribution (`:lower`, `:upper`): the maximum likelihood estimate is the sample minimum and maximum.
raw docstring

unit-data-errorclj

(unit-data-error data min-count)

Message when data is not a sequence of at least min-count numbers inside the open interval from 0 to 1, otherwise nil.

Message when `data` is not a sequence of at least `min-count` numbers inside the open interval from `0` to `1`, otherwise `nil`.
raw docstring

von-misesclj

Specification of the von Mises distribution (:mu the mean direction, :kappa the concentration): the maximum likelihood estimate of mu is the circular mean, the starting value of kappa comes from the mean resultant length. The distribution is not wrapped, its support is [mu - pi, mu + pi]: the angles have to lie in an interval of the length 2 pi which contains this window, move them to the window around the circular mean first.

Specification of the von Mises distribution (`:mu` the mean direction, `:kappa` the concentration): the maximum likelihood estimate of `mu` is the circular mean, the starting value of `kappa` comes from the mean resultant length. The distribution is not wrapped, its support is `[mu - pi, mu + pi]`: the angles have to lie in an interval of the length `2 pi` which contains this window, move them to the window around the circular mean first.
raw docstring

wallenius-noncentral-hypergeometricclj

Specification of Wallenius' noncentral hypergeometric distribution (:ns, :nf and :n integers which have to be fixed, :omega the odds ratio).

Specification of Wallenius' noncentral hypergeometric distribution (`:ns`, `:nf` and `:n` integers which have to be fixed, `:omega` the odds ratio).
raw docstring

weibullclj

Specification of the Weibull distribution (:alpha the shape, :beta the scale): the L-moment estimate has a closed form, the starting values come from the logarithms of the sample.

Specification of the Weibull distribution (`:alpha` the shape, `:beta` the scale): the L-moment estimate has a closed form, the starting values come from the logarithms of the sample.
raw docstring

zero-adjusted-beta-binomialclj

Specification of the zero-adjusted beta-binomial distribution (gamlss ZABB: :mu and :sigma of the beta-binomial distribution, :bd the integer number of trials, which has to be fixed, :nu the probability of a zero).

Specification of the zero-adjusted beta-binomial distribution (gamlss `ZABB`: `:mu` and `:sigma` of the beta-binomial distribution, `:bd` the integer number of trials, which has to be fixed, `:nu` the probability of a zero).
raw docstring

zero-adjusted-binomialclj

Specification of the zero-adjusted binomial distribution (gamlss ZABI: :mu the probability of a success, :sigma the probability of a zero, :bd the integer number of trials, which has to be fixed).

Specification of the zero-adjusted binomial distribution (gamlss `ZABI`: `:mu` the probability of a success, `:sigma` the probability of a zero, `:bd` the integer number of trials, which has to be fixed).
raw docstring

zero-adjusted-gammaclj

Specification of the zero-adjusted gamma distribution (gamlss ZAGA: :mu the mean and :sigma the coefficient of variation of the gamma distribution, :nu the probability of a zero): nu is the share of zeros, the other starting values are the mean and the coefficient of variation of the positive observations.

Specification of the zero-adjusted gamma distribution (gamlss `ZAGA`: `:mu` the mean and `:sigma` the coefficient of variation of the gamma distribution, `:nu` the probability of a zero): `nu` is the share of zeros, the other starting values are the mean and the coefficient of variation of the positive observations.
raw docstring

zero-adjusted-inverse-gaussianclj

Specification of the zero-adjusted inverse Gaussian distribution (gamlss ZAIG: :mu the mean and :sigma of the inverse Gaussian distribution, lambda = 1 / sigma^2, :nu the probability of a zero): the maximum likelihood estimate is the share of zeros and the estimate of the inverse Gaussian distribution for the positive observations.

Specification of the zero-adjusted inverse Gaussian distribution (gamlss `ZAIG`: `:mu` the mean and `:sigma` of the inverse Gaussian distribution, `lambda = 1 / sigma^2`, `:nu` the probability of a zero): the maximum likelihood estimate is the share of zeros and the estimate of the inverse Gaussian distribution for the positive observations.
raw docstring

zero-adjusted-negative-binomialclj

Specification of the zero-adjusted negative binomial distribution (gamlss ZANBI: :mu the mean and :sigma the dispersion of the negative binomial distribution type I, :nu the probability of a zero).

Specification of the zero-adjusted negative binomial distribution (gamlss `ZANBI`: `:mu` the mean and `:sigma` the dispersion of the negative binomial distribution type I, `:nu` the probability of a zero).
raw docstring

zero-adjusted-poissonclj

Specification of the zero-adjusted Poisson distribution (gamlss ZAP: :mu the rate of the zero-truncated Poisson distribution, :sigma the probability of a zero): sigma is the share of zeros, mu solves the equation of the mean of the positive part.

Specification of the zero-adjusted Poisson distribution (gamlss `ZAP`: `:mu` the rate of the zero-truncated Poisson distribution, `:sigma` the probability of a zero): `sigma` is the share of zeros, `mu` solves the equation of the mean of the positive part.
raw docstring

zero-inflated-beta-binomialclj

Specification of the zero-inflated beta-binomial distribution (gamlss ZIBB: :mu and :sigma of the beta-binomial distribution, :bd the integer number of trials, which has to be fixed, :nu the probability of an extra zero).

Specification of the zero-inflated beta-binomial distribution (gamlss `ZIBB`: `:mu` and `:sigma` of the beta-binomial distribution, `:bd` the integer number of trials, which has to be fixed, `:nu` the probability of an extra zero).
raw docstring

zero-inflated-binomialclj

Specification of the zero-inflated binomial distribution (gamlss ZIBI: :mu the probability of a success, :sigma the probability of an extra zero, :bd the integer number of trials, which has to be fixed).

Specification of the zero-inflated binomial distribution (gamlss `ZIBI`: `:mu` the probability of a success, `:sigma` the probability of an extra zero, `:bd` the integer number of trials, which has to be fixed).
raw docstring

zero-inflated-negative-binomialclj

Specification of the zero-inflated negative binomial distribution (gamlss ZINBI: :mu the mean and :sigma the dispersion of the negative binomial distribution type I, :nu the probability of an extra zero).

Specification of the zero-inflated negative binomial distribution (gamlss `ZINBI`: `:mu` the mean and `:sigma` the dispersion of the negative binomial distribution type I, `:nu` the probability of an extra zero).
raw docstring

zero-inflated-poissonclj

Specification of the zero-inflated Poisson distribution (gamlss ZIP: :mu the Poisson mean, :sigma the probability of an extra zero): the starting values solve the equations of the zero fraction and the mean.

Specification of the zero-inflated Poisson distribution (gamlss `ZIP`: `:mu` the Poisson mean, `:sigma` the probability of an extra zero): the starting values solve the equations of the zero fraction and the mean.
raw docstring

zero-inflated-poisson2clj

Specification of the zero-inflated Poisson distribution with the mean as a parameter (gamlss ZIP2: :mu the mean of the distribution, :sigma the probability of an extra zero): the starting values solve the equations of the zero fraction and the mean.

Specification of the zero-inflated Poisson distribution with the mean as a parameter (gamlss `ZIP2`: `:mu` the mean of the distribution, `:sigma` the probability of an extra zero): the starting values solve the equations of the zero fraction and the mean.
raw docstring

zipfclj

Specification of the Zipf distribution (:number-of-elements the integer highest rank, :exponent): the number of elements is searched at the largest observation, where the likelihood is the largest.

Specification of the Zipf distribution (`:number-of-elements` the integer highest rank, `:exponent`): the number of elements is searched at the largest observation, where the likelihood is the largest.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close