euc_dist function

Euclidean distance

Euclidean distance

This function computes the euclidean distance between two vectors.

euc_dist(a, b)

Arguments

  • a: A numeric vector.
  • b: Another numeric vector of the same length as a.

Returns

The euclidean distance.