We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
related to #80, #6
The text was updated successfully, but these errors were encountered:
nabor is 100 times faster than nngeo.
nabor
library(nngeo) #> Warning: package 'nngeo' was built under R version 3.6.2 #> Loading required package: sf #> Warning: package 'sf' was built under R version 3.6.2 #> Linking to GEOS 3.7.2, GDAL 2.4.2, PROJ 5.2.0 library(nabor) library(sf) points <- towns points_coords <- st_coordinates(points) points_geo <- st_geometry(points) rbenchmark::benchmark( nn_nngeo = st_nn(points_geo, points_geo, maxdist = 1000, k = c(20), progress = FALSE), nn_nabor = knn(data=points_coords, k=20, radius=1000) ) #> test replications elapsed relative user.self sys.self user.child #> 2 nn_nabor 100 0.044 1.000 0.042 0.001 0 #> 1 nn_nngeo 100 4.436 100.818 4.344 0.062 0 #> sys.child #> 2 0 #> 1 0
Created on 2020-06-02 by the reprex package (v0.3.0)
Sorry, something went wrong.
No branches or pull requests
related to #80, #6
The text was updated successfully, but these errors were encountered: