Liking cljdoc? Tell your friends :D

anglican.stat

Statistics related functions

Statistics related functions
raw docstring

collect-byclj

(collect-by f samples)

calculates contribution to log marginal by value;

  • accepts a (finite) sequence of samples
  • returns a map containing the log sum weight weight for each unique value returned when applying f to a sample, normalized by the total number of samples
calculates contribution to log marginal by value;
- accepts a (finite) sequence of samples
- returns a map containing the log sum weight weight for
  each unique value returned when applying f to a sample,
  normalized by the total number of samples
raw docstring

collect-predictsclj

(collect-predicts k samples)

constructs a map of weighted predict values

  • accepts a key and a (finite) sequence of samples
  • returns a map {v log-w} containing an entry v for each unique predict value with key k, along with its log sum weight normalized by the total number of samples
constructs a map of weighted predict values 
- accepts a key and a (finite) sequence of samples
- returns a map {v log-w} containing an entry v for each unique
predict value with key k, along with its log sum weight normalized
by the total number of samples
raw docstring

collect-resultsclj

(collect-results samples)

constructs a map of weighted result values

  • accepts a (finite) sequence of samples
  • returns a map {v log-w} containing an entry v for each unique predict value along with its log sum weight normalized by the total number of samples
constructs a map of weighted result values 
- accepts a (finite) sequence of samples
- returns a map {v log-w} containing an entry v for each unique
predict value along with its log sum weight normalized by the 
total number of samples
raw docstring

empirical-covarianceclj

(empirical-covariance weighted)

calculates the covariance from a collection of weighted pairs [x log-w], where x may be of a number or vector.

calculates the covariance from a collection of weighted pairs
[x log-w], where x may be of a number or vector.
raw docstring

empirical-distributionclj

(empirical-distribution weighted)

calculates an empirical distribution from weighted samples;

  • accepts a map or sequence of log weighted values [x log-w]
  • returns a map {x p} of values and normalized probabilities
calculates an empirical distribution from weighted samples;
- accepts a map or sequence of log weighted values [x log-w]
- returns a map {x p} of values and normalized probabilities
raw docstring

empirical-expectationclj

(empirical-expectation f weighted)

calculates an expected value from weighted samples;

  • accepts a function f and a map or sequence of log weighted values [x log-w]. f may return either a number or array.
  • returns the expected value of (f x)
calculates an expected value from weighted samples;
- accepts a function f and a map or sequence of log weighted
  values [x log-w]. f may return either a number or array.
- returns the expected value of (f x)
raw docstring

empirical-kurtosisclj

(empirical-kurtosis weighted)

calculates the standardized kurtosis from a collection of weighted values [x log-w], where x may be of a number or array

calculates the standardized kurtosis from a collection of weighted
values [x log-w], where x may be of a number or array
raw docstring

empirical-meanclj

(empirical-mean weighted)

calculates the mean from a collection of weighted pairs [x log-w], where x may be of a number or array

calculates the mean from a collection of weighted pairs
[x log-w], where x may be of a number or array
raw docstring

empirical-skewclj

(empirical-skew weighted)

calculates the standardized skew from a collection of weighted values [x log-w], where x may be of a number or array

calculates the standardized skew from a collection of weighted
values [x log-w], where x may be of a number or array
raw docstring

empirical-stdclj

(empirical-std weighted)

calculates the standard deviation from a collection of weighted values [x log-w], where x may be of a number or array

calculates the standard deviation from a collection of weighted
values [x log-w], where x may be of a number or array
raw docstring

empirical-varianceclj

(empirical-variance weighted)

calculates the variance from a collection of weighted pairs [x log-w], where x may be of a number or array

calculates the variance from a collection of weighted pairs
[x log-w], where x may be of a number or array
raw docstring

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

× close