Skip to main content

Module sampling

Module sampling 

Source
Expand description

Sampling utilities for common statistical operations

Functionsยง

bootstrap_indices
Sample indices for bootstrapping (sampling with replacement)
random_exponential
Sample from an exponential distribution
random_floats
Generate an array of random floating-point values in a range
random_integers
Generate an array of random integers in a range
random_lognormal
Sample from a log-normal distribution
random_normal
Sample from a normal distribution with given mean and standard deviation
random_standard_normal
Sample from a standard normal distribution (mean 0, std dev 1)
random_uniform01
Sample uniformly from [0, 1)
sample_without_replacement
Sample indices without replacement (for random subsampling)