liorkogan / streamsampler Goto Github PK
View Code? Open in Web Editor NEWA stream sampler extracts one or more sample sets, each with a given number of elements, from a stream. Each possible sample set (of the given size) has an equal probability of being extracted. A stream sampler is an online algorithm: The size of the input is unknown, and only one pass over the stream is possible.
License: Apache License 2.0