nearestRD: Nearest Relative Distance

Description Usage Arguments Value Author(s)

View source: R/nearestRD.R

Description

Returns the index of the nearest neighbour of a given point of the data, using relative distances.

Usage

1
nearestRD(data, i, defined)

Arguments

data

A matrix containing n data points as row vectors.

i

The index (row number) of the data point who's nearest neighbour is sought.

defined

A row vector with 1 for all columns of the data to be used. If missing, all columns are used.

Value

nNInd

The index of the nearest neighbour of data[i,]

Author(s)

Raphael Paebst


Mthrun/Distances documentation built on Feb. 4, 2020, 8:39 p.m.