Module index

Module index 

Source
Expand description

Low-level API for sampling indices

Enums§

IndexVecalloc
A vector of indices.
IndexVecIntoIteralloc
Return type of IndexVec::into_iter.
IndexVecIteralloc
Return type of IndexVec::iter.

Functions§

samplealloc
Randomly sample exactly amount distinct indices from 0..length, and return them in random order (fully shuffled).
sample_array
Randomly sample exactly N distinct indices from 0..len, and return them in random order (fully shuffled).
sample_weightedalloc and std
Randomly sample amount distinct indices from 0..length