| reparam_curve {fdasrvf} | R Documentation |
This function aligns two SRVF functions using Dynamic Programming
reparam_curve( beta1, beta2, lambda = 0, method = "DP", w = 0.01, rotated = T, isclosed = F, mode = "O" )
beta1 |
array defining curve 1 |
beta2 |
array defining curve 1 |
lambda |
controls amount of warping (default = 0) |
method |
controls which optimization method (default="DP") options are Dynamic Programming ("DP"), Coordinate Descent ("DP2"), Riemannian BFGS ("RBFGS") |
w |
controls LRBFGS (default = 0.01) |
rotated |
boolean if rotation is desired |
isclosed |
boolean if curve is closed |
mode |
Open ("O") or Closed ("C") curves |
return a List containing
gam |
warping function |
R |
rotation matrix |
tau |
seed point |
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.
data("mpeg7")
gam = reparam_curve(beta[,,1,1],beta[,,1,5])$gam