dist2AllCB: Distance to all, using City Block metric

Description Usage Arguments Value Author(s)

Description

Calculates the distance from a given vector to all rows of a matrix, using the City Block distance (Manhattan) measure.

Usage

1
dist2AllCB(x, data, defined)

Arguments

x

A vector to be compared to data.

data

A matrix, containing the data to be compared to x.

defined

A vector of the same length as x and the rows of data, containing 1 for all columns of the matrix to be used and other values for all columns to be discarded. By default all columns are used.

Value

dv

A vector, containing the distances from x to the rows of data.

Author(s)

Raphael Paebst


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