knneighborRD: KNNeighbor using relative distances

Description Usage Arguments Value Author(s)

View source: R/knneighborRD.R

Description

returns the k nearest neighbours of x in the data, using relative distances.

Usage

1
knneighborRD(x, k, data, defined)

Arguments

x

A row vector, contianing the data point, who's k nearest neighbours are sought.

k

the number of nearest neighbours of x that are sought.

data

A matrix containing the data as row vectors.

defined

A row vector of the same length as x, containing 1 for each column that is used in the calculation. If not given, all columns are used.

Value

nn

A vector containing the row numbers of the k nearest neighbours of x in data

Author(s)

Raphael Paebst


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