2 unstable releases
Uses old Rust 2015
0.2.0 | Nov 4, 2015 |
---|---|
0.1.0 | Oct 28, 2015 |
#77 in #sampling
4KB
Reservoir sampling with Algorithm R implemented in Rust.
Run cargo doc
to generate documentation.
lib.rs
:
Reservoir sampling: collect a random sample of a known maximum size from an iterator of unknown length.
Implements Jeffrey Vitter's Algorithm R (see https://en.wikipedia.org/wiki/Reservoir_sampling)
Dependencies
~330–560KB