sample function #55

Closed
spara opened this Issue Jan 24, 2014 · 2 comments

Projects

None yet

2 participants

@spara
spara commented Jan 24, 2014

Add sample function to reduce the time it takes to operate on larger data sets

@tmcw
Member
tmcw commented Feb 11, 2014

http://en.wikipedia.org/wiki/Simple_random_sampling

The QGIS approach is simple random sampling with replacement, which is a bit of an odd choice.

@tmcw
Member
tmcw commented Aug 20, 2014

Simplest method for sampling without replacement is to do a fisher-yates shuffle (impl) and then a subset of the array. Not efficient when the array is much larger than the desired sample size, but it'll work.

@tmcw tmcw closed this in 79ec30e Aug 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment