Description Usage Arguments Value Author(s)
Calculates the distance from a given vector to all rows of a matrix, using the City Block distance (Manhattan) measure.
1 | dist2AllCB(x, data, defined)
|
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. |
dv |
A vector, containing the distances from x to the rows of data. |
Raphael Paebst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.