Module rv::misc[][src]

Random utilities

Functions

argmax

Indices of the largest element(s) in xs.

cumsum

Cumulative sum of xs

ks_test

Univariate one-sample Kolmogorov-Smirnov test.

ln_pflip

Draw an index according to log-domain weights

logsumexp

Safely compute log(sum(exp(xs))

pflip

Draw n indices in proportion to their weights

x2_test

Χ2 (Chi-squared) test.