knneighborsRD: KNNeighbors

Description Usage Arguments Value Author(s)

View source: R/knneighborsRD.R

Description

returns the k nearest neighbours of every point in the data.

Usage

1
knneighborsRD(k, data, defined)

Arguments

k

The number of neighbours to each point in the data that are sought.

data

A Matrix containing the data points as row vectors.

defined

A row vector containing 1 for all columns that are used. If missing, all columns are used.

Value

nn

A matrix containing the row numbers of the k neighbours of each row in data as a row vector, sorted in ascending order.

Author(s)

Raphael Paebst


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