50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


landscapemetrics (version 1.5.6)

rcpp_get_nearest_neighbor: First nearest neighbor distance

Description

Efficiently calculate the distance to the first nearest neighbor. Quasi linear runtime.

Usage

rcpp_get_nearest_neighbor(points)

Value

Vector

Arguments

points

A two numeric matrix, where the first two columns are x and y

Author

Florian Privé florian.prive.21@gmail.com