dists function

Generic function for calculating distance matrices

Generic function for calculating distance matrices

dists(x, ...)

Arguments

  • x: An R object.
  • ...: Additional parameters or attributes.

Returns

A list of signed distance matrices: h (Euclidean), h1

(horizontal), and h2 (vertical) with the same dimensions.