subsample.distance function

Distance-based subsampling