knn.from.dist: get information about k nearest neighbors from a distance...

Description Usage Arguments Details Value

View source: R/knn.R

Description

This implementation uses sorting of distances to identify the k elements that are nearest to each data point. The result is deterministic and exact.

Usage

1

Arguments

d

dist object or matrix with distances

k

integer, number of neighbors

Details

By definition, the first nearest neighbor to each point is the point itself. Subsequent neighbors are "true" neighbors.

Value

list with two components; indexes identifies, for each point in dataset, the set of k neighbors distances provides distances from each point to those neighbors


donelsonsmith/umap_R documentation built on Nov. 4, 2019, 10:58 a.m.