distancia1: Vector-Vector Manhattan Distance Function
Description
Finds the Manhattan distance between two vectors x and y, or
the vector x and the matrix y
Usage
distancia1(x, y)
Arguments
x
A numeric vector
y
A numeric vector or matrix
Value
distancia
The result is a numeric value representing the Manhattan distance between
x and y, or a row matrix representing the Euclidean distance between x and
each row of y.