Proxy for kixi-stats distributions.
See the github repo.
Proxy for kixi-stats distributions. See the [github repo](https://github.com/MastodonC/kixi.stats).
(make-bernoulli p)
Returns a Bernoulli distribution. {:p ∈ [0 1]}
.
Returns a Bernoulli distribution. `{:p ∈ [0 1]}`.
(make-beta alpha beta)
Returns a beta distribution. {:alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}
.
Returns a beta distribution. `{:alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}`.
(make-beta-binomial n alpha beta)
Returns a beta distribution. {:n ∈ ℕ > 0, :alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}
.
Returns a beta distribution. `{:n ∈ ℕ > 0, :alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}`.
(make-binomial n p)
Return a binomial distribution. {:n ∈ ℕ, :p ∈ [0 1]}
.
Return a binomial distribution. `{:n ∈ ℕ, :p ∈ [0 1]}`.
(make-categorical category-probabilities)
Returns a categorical distribution. {[category] [probability], ...}
Probabilities should be >= 0 and sum to 1.
Returns a categorical distribution. `{[category] [probability], ...}` Probabilities should be >= 0 and sum to 1.
(make-cauchy location scale)
Returns a Cauchy distribution. {:location ∈ ℝ, :scale ∈ ℝ > 0}
.
Returns a Cauchy distribution. `{:location ∈ ℝ, :scale ∈ ℝ > 0}`.
(make-chi-squared k)
Returns a chi-squared distribution. {:k ∈ ℕ > 0}
.
Returns a chi-squared distribution. `{:k ∈ ℕ > 0}`.
(make-dirichlet alphas)
Returns a Dirichlet distribution. {:alphas [ℝ >= 0, ...]}
.
Returns a Dirichlet distribution. `{:alphas [ℝ >= 0, ...]}`.
(make-dirichlet-multinomial n alphas)
Returns a Dirichlet-multinomial distribution. {:n ∈ ℕ, :alphas [ℝ >= 0, ...]}
.
Returns a Dirichlet-multinomial distribution. `{:n ∈ ℕ, :alphas [ℝ >= 0, ...]}`.
(make-exponential rate)
Returns an exponential distribution. {:rate ∈ ℝ > 0}
.
Returns an exponential distribution. `{:rate ∈ ℝ > 0}`.
(make-f d1 d2)
Returns an F distribution. {:d1 ∈ ℝ > 0, :d2 ∈ ℝ > 0}
.
Returns an F distribution. `{:d1 ∈ ℝ > 0, :d2 ∈ ℝ > 0}`.
(make-gamma-rate shape rate)
Returns a gamma distribution. {:shape ∈ ℝ > 0, :rate ∈ ℝ > 0}
.
Returns a gamma distribution. `{:shape ∈ ℝ > 0, :rate ∈ ℝ > 0}`.
(make-gamma-scale shape scale)
Returns a gamma distribution. {:shape ∈ ℝ > 0, :scale ∈ ℝ > 0}
.
Returns a gamma distribution. `{:shape ∈ ℝ > 0, :scale ∈ ℝ > 0}`.
(make-log-normal location scale)
Returns a Log-normal distribution. The parameters are the log of the mean and sd of this distribution. {:location ∈ ℝ, :scale ∈ ℝ > 0}
.
Returns a Log-normal distribution. The parameters are the log of the mean and sd of this distribution. `{:location ∈ ℝ, :scale ∈ ℝ > 0}`.
(make-multinomial n probs)
Returns a multinomial distribution. {:n ∈ ℕ > 0, :probs [ℝ >= 0, ...]}
Probabilities should be >= 0 and sum to 1.
Returns a multinomial distribution. `{:n ∈ ℕ > 0, :probs [ℝ >= 0, ...]}` Probabilities should be >= 0 and sum to 1.
(make-normal location scale)
Returns a normal distribution. {:location ∈ ℝ, :scale ∈ ℝ > 0}
.
Returns a normal distribution. `{:location ∈ ℝ, :scale ∈ ℝ > 0}`.
(make-pareto scale shape)
Returns a Pareto distribution. {:scale ∈ ℝ > 0, :shape ∈ ℝ > 0}
.
Returns a Pareto distribution. `{:scale ∈ ℝ > 0, :shape ∈ ℝ > 0}`.
(make-poisson lambda)
Returns a Poisson distribution. {:lambda ∈ ℝ > 0}
.
Returns a Poisson distribution. `{:lambda ∈ ℝ > 0}`.
(make-t v)
Returns a t distribution. {:v ∈ ℝ > 0}
.
Returns a t distribution. `{:v ∈ ℝ > 0}`.
(make-uniform a b)
Returns a uniform distribution. {:a ∈ ℝ, :b ∈ ℝ, :a < :b}
.
Returns a uniform distribution. `{:a ∈ ℝ, :b ∈ ℝ, :a < :b}`.
(make-weibull scale shape)
Returns a weibull distribution. {:shape ∈ ℝ >= 0, :scale ∈ ℝ >= 0}
.
Returns a weibull distribution. `{:shape ∈ ℝ >= 0, :scale ∈ ℝ >= 0}`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close