Skip to contents

Computed as: sum(abs(x - y)). Cannot handle NA values.

Usage

distance_manhattan_cpp(x, y)

Arguments

x

(required, numeric vector).

y

(required, numeric vector) of same length as x.

Value

numeric

Examples

distance_manhattan_cpp(x = runif(100), y = runif(100))
#> [1] 32.87435