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


RSSL documentation built on May 29, 2024, 2:38 a.m.