Compute the elastic shape distance between two curves in a specified quotient space. The shape distance factors out the specified nuisance transformations (reparameterization, translation, scale).
Usage
shape.distance(
f1,
f2,
argvals = NULL,
quotient = c("reparameterization", "translation", "scale"),
lambda = 0
)Arguments
- f1
Numeric vector (first curve).
- f2
Numeric vector (second curve).
- argvals
Numeric vector of evaluation points. If
NULL, defaults toseq(0, 1, length.out = length(f1)).- quotient
Character: the quotient space. One of
"reparameterization","translation", or"scale".- lambda
Regularization parameter (default 0).
Value
A list with components:
- distance
Shape distance
- gamma
Optimal warping function
- f2.aligned
Aligned version of f2