which_min_vector: A function to compute indices of minimum values of a distance...

Description Usage Arguments Details Value Author(s)

View source: R/RcppExports.R

Description

For internal use only

Usage

1

Arguments

X

a vector of distances

Details

Used internally to find the nearest neighbors. It searches in lower (or upper) triangular matrix. Therefore this must be the format of the input data. The piece of code int len = (sqrt(X.size()*8+1)+1)/2 generated an error in CRAN since sqrt cannot be applied to integers.

Value

a vector of the indices of the nearest neighbors

Author(s)

Antoine Stevens


resemble documentation built on Jan. 18, 2022, 1:08 a.m.