nearest: Nearest

Description Usage Arguments Value Author(s)

Description

returns the index of the nearest neighbour of a given data point.

Usage

1
nearest(Data, i, defined)

Arguments

Data

A matrix holding n data points as row vectors.

i

the index of the data point, who's nearest neighbour is sought.

defined

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

Value

nNInd

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

Author(s)

Michael Thrun, Raphael Paebst


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