Skip to content

zhangchi1/ReservoirSampling

Repository files navigation

ReservoirSampling

sample k elements with equal probability from n numbers

1. Simple random sampling method with a finit-size list of elements: N (N is known).


Select each element in the sample set S, with probability of x

at each step i

2. My Reservoir Sampling algorithm (N is usually unknown, where data is too large to load into the memory).

About

My Reservoir Sampling algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages