getNNmatrix: Computes the NN adjacency matrix given the neighbours

View source: R/RcppExports.R

getNNmatrixR Documentation

Computes the NN adjacency matrix given the neighbours

Description

Computes the NN adjacency matrix given the neighbours

Usage

getNNmatrix(nnRanked, k = -1L, start = 0L, prune = 0)

Arguments

nnRanked

A matrix with the lists of the nearest neighbours for each point

k

The number of neighbours to consider. Defaults to -1, which means all neighbours.

start

The index of the first neighbour to consider. Defaults to 0.

prune

The threshold to prune the SNN matrix. If -1, the function will only return the NN matrix. Defaults to 0.

Value

A list with the NN and SNN adjacency matrices.


Core-Bioinformatics/ClustAssess documentation built on Nov. 14, 2024, 6:33 p.m.