distance.Euclidean {manifold}R Documentation

Geodesic distance

Description

Geodesic distance

Usage

## S3 method for class 'Euclidean'
distance(mfd, X, Y, ...)

distance(mfd, X, Y, ...)

## S3 method for class 'L2'
distance(mfd, X, Y, ...)

## S3 method for class 'HS'
distance(mfd, X, Y, ...)

## S3 method for class 'Dens'
distance(mfd, X, Y, ...)

## S3 method for class 'SO'
distance(mfd, X, Y, ...)

## S3 method for class 'LogEu'
distance(mfd, X, Y, assumeLogRep = FALSE, ...)

## S3 method for class 'AffInv'
distance(mfd, X, Y, ...)

## S3 method for class 'Sphere'
distance(mfd, X, Y, ...)

Arguments

mfd

A manifold object created by createM

X, Y

Matrices with n columns. The distance between each pair of columns is calculated. If either X or Y is a vector then it is recycled.

...

Passed into specific methods

assumeLogRep

Whether to assume the input are already the representations under the logarithm map

Value

A vector with n entries containing the distances between pairs of points

Methods (by class)


[Package manifold version 0.1.1 Index]