Skip to contents

Computed as: sqrt(sum((x - y)^2). Cannot handle NA values.

Usage

distance_euclidean_cpp(x, y)

Arguments

x

(required, numeric vector).

y

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

Value

numeric

Examples

distance_euclidean_cpp(x = runif(100), y = runif(100))
#> [1] 4.067016