rust-cv / space

Spatial library for Rust
MIT License
39 stars 4 forks source link

Don't oversample leaves in random sample #3

Closed vadixidav closed 6 years ago

vadixidav commented 6 years ago

If we reach a leaf and it has less or equal items than we need samples, then the random sampler should just give back every leaf item. This should avoid oversampling the leaves.