kNN_idx: Indices for k-nearest neighbours.

Description Usage Arguments Value

Description

Function returns a n x K data.frame with every row storing indices of the K nearest neighbour of a corresponding datapoint.

Usage

1
kNN_idx(D, K)

Arguments

D

A dissimilarity matrix.

K

An integer indicating the number of points to include in the neighbourhood. If not specified one tenth of the total number of data points is used.

Value

A data.frame with.


nlhuong/buds documentation built on May 17, 2019, 3:13 a.m.