clojure.core.matrix.stats
Namespace for statistical functions operating on core.matrix arrays.
Previously some of these functions were available in a separate `core.matrix.stats` library,
they have now been fully integrated into core.matrix.
mean
(mean values)
Calculates the mean of a collection of values.
Values may be scalars, vectors or higher-dimensional matrices.
normalise-probabilities
(normalise-probabilities v)
Normalises a numerical probability vector, i.e. to a vector where all elements sum to 1.0.
A zero vector will be set set to [1/n .... 1/n].
sd
(sd values)
Calculates the sample standard deviation of a set of values.
Values may be scalars, vectors or higher-dimensional matrices.
sum
(sum values)
Calculates the sum of a collection of values.
Values may be scalars, vectors or higher-dimensional matrices.
sum-of-squares
(sum-of-squares values)
Calculates the sum of squares of a collection of values.
Values may be scalars, vectors or higher-dimensional matrices.
variance
(variance values)
Calculates the unbiased sample variance of a set of values.
Values may be scalars, vectors or higher-dimensional matrices.