get_Ri_nearest: Get the indices of samples nearest to Ri

View source: R/nearestNeighbors.R

get_Ri_nearestR Documentation

Get the indices of samples nearest to Ri

Description

Get the indices of samples nearest to Ri

Usage

get_Ri_nearest(dist.mat, Ri, nbd.method, k = 0, Ri.radius = NULL)

Arguments

dist.mat

Distance matrix

Ri

Sample Ri index.

nbd.method

neighborhood method "multisurf" or "surf" (no k) or "relieff" (specify k). Used by nearestNeighbors().

k

Integer for the number of neighbors ("relieff" method).

Ri.radius

Radius of the neighborhood (other methods).

Value

Numeric vector of nearest indices.


insilico/npdr documentation built on July 6, 2023, 1:14 p.m.