distance function

Compute distance

Compute distance

Compute distance using object of class measure or manifold.

distance(d, x1, x2 = NULL) ## S4 method for signature 'measure' distance(d, x1, x2 = NULL) ## S4 method for signature 'manifold' distance(d, x1, x2 = NULL)

Arguments

  • d: object of class measure or manifold
  • x1: first coordinate
  • x2: second coordinate

Examples

distance(sphere(),matrix(0,1,2),matrix(10,1,2)) distance(plane(),matrix(0,1,2),matrix(10,1,2))

See Also

real_line, plane, sphere, STplane and STsphere for constructing manifolds, and distances for the type of distances available.

  • Maintainer: Andrew Zammit-Mangion
  • License: GPL (>= 2)
  • Last published: 2024-07-16