Compute the geodesic (shortest path) between two curves in the elastic metric. The geodesic is represented as a sequence of intermediate curves interpolating between the two endpoints in the SRVF space.
Arguments
- f1
Numeric vector of the first curve's values.
- f2
Numeric vector of the second curve's values.
- argvals
Numeric vector of the evaluation grid (common to both curves).
- n.points
Number of points along the geodesic to compute (default 10).
- lambda
Regularisation parameter controlling warping smoothness (default 0).
Value
An object of class 'curve.geodesic' with components:
- path
fdata of the interpolated curves along the geodesic
- distance
the total geodesic (elastic) distance between f1 and f2
- gamma
numeric vector of the optimal warping function
- argvals
the evaluation grid