Stream sampler that picks a random (representative) sample of size k from a stream of values with unknown and possibly very large length.
-
Updated
Oct 23, 2014 - PHP
Stream sampler that picks a random (representative) sample of size k from a stream of values with unknown and possibly very large length.
A stream sampler maintains one or more simple random samples, each with a fixed number of elements. As stream elements become available, the samples are updated to remain simple random samples.
Example PHP Command-line Application based on Symlex Core
Stream sampler that picks a random sample of size k from a stream of values with unknown and possibly very large length base on Reservoir sampling algorithm
Add a description, image, and links to the stream-sampler topic page so that developers can more easily learn about it.
To associate your repository with the stream-sampler topic, visit your repo's landing page and select "manage topics."