Skip to contents

Euclidean distance

Usage

euclidean_distance(x, y)

Arguments

x
  • numeric

y
  • numeric

Value

numeric - euclidean distance between x and y

Examples

euclidean_distance(c(1, 1), c(1, 2))
#> [1] 1