sampling
Mojo module 🡭
sampling
Reservoir sampling on a stream.
References
- Algorithm R: https://en.wikipedia.org/wiki/Reservoir_sampling
Structs
ReservoirSampler: Sample N items from a stream of unknown length.
Mojo module 🡭
samplingReservoir sampling on a stream.
ReservoirSampler: Sample N items from a stream of unknown length.