bestBuddy: Bestbuddy

Description Usage Arguments Value Author(s)

View source: R/bestBuddy.R

Description

Returns the bestbuddy of a given data point e.g. the data point closest to it.

Usage

1
bestBuddy(z, data, defined)

Arguments

z

a vector of the same length as the rows of data. A data point to be compared to the rest.

data

A matrix containing all points of data to be compared to z.

defined

A vector of the same length as z and the rows of data, containing 1 for all columns of data to be used and other values for all columns to be discarded.

Value

itembb the index of the bestbuddy to z.]

Author(s)

Raphael Paebst


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