Reservoir sampling

Posted by Codenotguru on Stack Overflow See other posts from Stack Overflow or by Codenotguru
Published on 2010-04-10T07:45:02Z Indexed on 2010/04/10 7:53 UTC
Read the original article Hit count: 404

Filed under:

to retrieve k random numbers from an array of undetermined size we use a technique called reservoir sampling. Can anybody briefly highlight how it happens with a sample code??

© Stack Overflow or respective owner

Related posts about sampling