umap (version 0.2.2.0)

knn.info: Compute knn information

Description

This function determines whether to obtain knn information using an exact brute force approach or using an approximate algorithm

Usage

knn.info(d, config, brute.force = TRUE)

Arguments

d

data matrix

config

list with settings; relevant settings are as follows: input - "data" or "dist" n.neighbors - number of neighbors k metric.function - function with signature f(a, b)

brute.force

logical, during development, set FALSE to force stochastic knn

Value

list with at least two components, indexes and distances