Module func

Source

Traits§

LogSumExp
Streaming logexp implementation as described in Sebastian Nowozin’s blog

Functions§

argmax
Indices of the largest element(s) in xs.
cumsum
Cumulative sum of xs
gammafn
Gamma function, Γ(x)
gumbel_pflip
ln_binom
Natural logarithm of binomial coefficient, ln nCk
ln_fact
ln factorial
ln_gammafn
Logarithm of the gamma function, ln Γ(x)
ln_pflip
ln_pflips
Draw an index according to log-domain weights
lnmv_gamma
Natural logarithm of the multivariate gamma function, ln Γp(a).
log1pexp
log_product
Computes the natural logarithm of the product of a sequence of floating-point numbers.
logaddexp
mvgamma
Multivariate gamma function, Γp(a).
pflip
pflips
Draw n indices in proportion to their weights
sorted_uniforms
Generate a vector of sorted uniform random variables.
vec_to_string
Convert a Vector to a printable string