calcKNNgraph_euclidean: Calculate k Nearest Neighbors from Euclidean distance metric

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Each distance metric has its own function for speed/efficiency This takes a sample X feature matrix and returns a matrix of k nearest neighbors. This is the one for Euclidean.

Usage

1

Arguments

x

An m x n numeric matrix

k

The number of nearest neighbors to return per sample

Value

An m x k matrix of indicies 1...k of the nearest neighbors for the specified row based on Euclidean distance.


scfurl/m3addon documentation built on Aug. 9, 2021, 5:30 p.m.