adjacency_knn: Calculate knn adjacency matrix

View source: R/LaplacianKernelLeastSquaresClassifier.R

adjacency_knnR Documentation

Calculate knn adjacency matrix

Description

Calculates symmetric adjacency: objects are neighbours is either one of them is in the set of nearest neighbours of the other.

Usage

adjacency_knn(X, distance = "euclidean", k = 6)

Arguments

X

matrix; input matrix

distance

character; distance metric used in the dist function

k

integer; Number of neighbours

Value

Symmetric binary adjacency matrix


jkrijthe/RSSL documentation built on Jan. 13, 2024, 1:56 a.m.