Liking cljdoc? Tell your friends :D

kixi.stats.distribution


bernoulliclj/s

(bernoulli {:keys [p]})

Returns a Bernoulli distribution. Params: {:p ∈ [0 1]}

Returns a Bernoulli distribution.
Params: {:p ∈ [0 1]}
sourceraw docstring

betaclj/s

(beta {:keys [alpha beta] :or {alpha 1.0 beta 1.0}})

Returns a beta distribution. Params: {:alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}

Returns a beta distribution.
Params: {:alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}
sourceraw docstring

beta-binomialclj/s

(beta-binomial {:keys [n alpha beta] :or {alpha 1.0 beta 1.0}})

Returns a beta distribution. Params: {:n ∈ ℕ > 0, :alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}

Returns a beta distribution.
Params: {:n ∈ ℕ > 0, :alpha ∈ ℝ > 0, :beta ∈ ℝ > 0}
sourceraw docstring

binomialclj/s

(binomial {:keys [n p]})

Return a binomial distribution. Params: {:n ∈ ℕ, :p ∈ [0 1]}

Return a binomial distribution.
Params: {:n ∈ ℕ, :p ∈ [0 1]}
sourceraw docstring

categoricalclj/s

(categorical category-probs)

Returns a categorical distribution. Params: {[category] [probability], ...} Probabilities should be >= 0 and sum to 1

Returns a categorical distribution.
Params: {[category] [probability], ...}
Probabilities should be >= 0 and sum to 1
sourceraw docstring

cauchyclj/s

(cauchy {:keys [location scale]})

Returns a Cauchy distribution. Params: {:location ∈ ℝ, :scale ∈ ℝ > 0}

Returns a Cauchy distribution.
Params: {:location ∈ ℝ, :scale ∈ ℝ > 0}
sourceraw docstring

cdfclj/s

source

chi-squaredclj/s

(chi-squared {:keys [k]})

Returns a chi-squared distribution. Params: {:k ∈ ℕ > 0}

Returns a chi-squared distribution.
Params: {:k ∈ ℕ > 0}
sourceraw docstring

critical-valueclj/s

(critical-value distribution)
(critical-value distribution alpha)
(critical-value distribution alpha tails)
source

dirichletclj/s

(dirichlet {:keys [alphas]})

Returns a Dirichlet distribution. Params: {:alphas [ℝ >= 0, ...]}

Returns a Dirichlet distribution.
Params: {:alphas [ℝ >= 0, ...]}
sourceraw docstring

dirichlet-multinomialclj/s

(dirichlet-multinomial {:keys [n alphas]})

Returns a Dirichlet-multinomial distribution. Params: {:n ∈ ℕ, :alphas [ℝ >= 0, ...]}

Returns a Dirichlet-multinomial distribution.
Params: {:n ∈ ℕ, :alphas [ℝ >= 0, ...]}
sourceraw docstring

drawclj/s

(draw distribution)
(draw distribution {:keys [seed]})

Returns a single variate from the distribution. An optional seed long will ensure deterministic results

Returns a single variate from the distribution.
An optional seed long will ensure deterministic results
sourceraw docstring

exponentialclj/s

(exponential {:keys [rate]})

Returns an exponential distribution. Params: {:rate ∈ ℝ > 0}

Returns an exponential distribution.
Params: {:rate ∈ ℝ > 0}
sourceraw docstring

fclj/s

(f {:keys [d1 d2]})

Returns an F distribution. Params: {:d1 ∈ ℝ > 0, :d2 ∈ ℝ > 0}

Returns an F distribution.
Params: {:d1 ∈ ℝ > 0, :d2 ∈ ℝ > 0}
sourceraw docstring

gammaclj/s

(gamma {:keys [shape scale rate] :or {shape 1.0}})

Returns a gamma distribution. Params: {:shape ∈ ℝ > 0, :scale ∈ ℝ > 0} or {:shape ∈ ℝ > 0, :rate ∈ ℝ > 0}

Returns a gamma distribution.
Params: {:shape ∈ ℝ > 0, :scale ∈ ℝ > 0} or {:shape ∈ ℝ > 0, :rate ∈ ℝ > 0}
sourceraw docstring

iqrclj/s

(iqr distribution)

Returns the interquartile range

Returns the interquartile range
sourceraw docstring

log-normalclj/s

(log-normal {:keys [location scale mu sd]})

Returns a Log-normal distribution. The parameters are the log of the mean and sd of this distribution. Params: {:location ∈ ℝ, :scale ∈ ℝ > 0}

Returns a Log-normal distribution.
The parameters are the log of the
mean and sd of this distribution.
Params: {:location ∈ ℝ, :scale ∈ ℝ > 0}
sourceraw docstring

maximumclj/s

source

medianclj/s

(median distribution)

Returns the median

Returns the median
sourceraw docstring

minimumclj/s

source

multinomialclj/s

(multinomial {:keys [n probs]})

Returns a multinomial distribution. Params: {:n ∈ ℕ > 0, :probs [ℝ >= 0, ...]} Probabilities should be >= 0 and sum to 1

Returns a multinomial distribution.
Params: {:n ∈ ℕ > 0, :probs [ℝ >= 0, ...]}
Probabilities should be >= 0 and sum to 1
sourceraw docstring

normalclj/s

(normal {:keys [location scale mu sd]})

Returns a normal distribution. Params: {:location ∈ ℝ, :scale ∈ ℝ > 0}

Returns a normal distribution.
Params: {:location ∈ ℝ, :scale ∈ ℝ > 0}
sourceraw docstring

paretoclj/s

(pareto {:keys [scale shape]})

Returns a Pareto distribution. Params: {:scale ∈ ℝ > 0, :shape ∈ ℝ > 0}

Returns a Pareto distribution.
Params: {:scale ∈ ℝ > 0, :shape ∈ ℝ > 0}
sourceraw docstring

poissonclj/s

(poisson {:keys [lambda]})

Returns a Poisson distribution. Params: {:lambda ∈ ℝ > 0}

Returns a Poisson distribution.
Params: {:lambda ∈ ℝ > 0}
sourceraw docstring

quantileclj/s

source

sampleclj/s

(sample n distribution)
(sample n distribution {:keys [seed]})

Returns n variates from the distribution. An optional seed long will ensure deterministic results

Returns n variates from the distribution.
An optional seed long will ensure deterministic results
sourceraw docstring

sample-summaryclj/s

(sample-summary n distribution)
(sample-summary n distribution {:keys [seed]})

Returns a summary count of each variate for a sample of a given length from a discrete distribution such as the Bernoulli, binomial or categorical. An optional seed long will ensure deterministic results

Returns a summary count of each variate for a sample
of a given length from a discrete distribution
such as the Bernoulli, binomial or categorical.
An optional seed long will ensure deterministic results
sourceraw docstring

summaryclj/s

(summary distribution)

Returns the 5-number distribution summary and the interquartile range.

Returns the 5-number distribution summary
and the interquartile range.
sourceraw docstring

tclj/s

(t {:keys [v]})

Returns a t distribution. Params: {:v ∈ ℝ > 0}

Returns a t distribution.
Params: {:v ∈ ℝ > 0}
sourceraw docstring

uniformclj/s

(uniform {:keys [a b]})

Returns a uniform distribution. Params: {:a ∈ ℝ, :b ∈ ℝ, :a < :b}

Returns a uniform distribution.
Params: {:a ∈ ℝ, :b ∈ ℝ, :a < :b}
sourceraw docstring

weibullclj/s

(weibull {:keys [shape scale] :or {shape 1.0 scale 1.0}})

Returns a weibull distribution. Params: {:shape ∈ ℝ >= 0, :scale ∈ ℝ >= 0}

Returns a weibull distribution.
Params: {:shape ∈ ℝ >= 0, :scale ∈ ℝ >= 0}
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close