sample function #55

spara opened this Issue Jan 24, 2014 · 2 comments


None yet

2 participants

spara commented Jan 24, 2014

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

tmcw commented Feb 11, 2014

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

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