Learn R Programming

fdasrvf (version 2.0.0)

calc_shape_dist: Elastic Shape Distance

Description

Calculate elastic shape distance between two curves beta1 and beta2

Usage

calc_shape_dist(beta1, beta2, mode = "O", scale = F)

Value

Returns a list containing

d

geodesic distance

dx

phase distance

Arguments

beta1

array describing curve1 (n,T)

beta2

array describing curve

mode

Open ("O") or Closed ("C") curves

scale

Include scale (default =F)

References

Srivastava, A., Klassen, E., Joshi, S., Jermyn, I., (2011). Shape analysis of elastic curves in euclidean spaces. Pattern Analysis and Machine Intelligence, IEEE Transactions on 33 (7), 1415-1428.

Examples

Run this code
out <- calc_shape_dist(beta[, , 1, 1], beta[, , 1, 4])

Run the code above in your browser using DataLab