knn.info: Compute knn information

Description Usage Arguments Value

View source: R/knn.R

Description

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

Usage

1
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


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