Learn R Programming

resemble (version 2.1.2)

which_min: A function to compute row-wise index of minimum values of a square distance matrix

Description

For internal use only

Usage

which_min(X)

Value

a vector of the indices of the minimum value in each row of the input matrix

Arguments

X

a square matrix of distances

Author

Antoine Stevens

Details

Used internally to find the nearest neighbors