Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


fdasrvf (version 2.3.6)

reparam_curve: Align two curves

Description

This function aligns two SRVF functions using Dynamic Programming. If the curves beta1 and beta2 are describing multidimensional functional data, then rotation == FALSE and mode == 'O'

Usage

reparam_curve(
  beta1,
  beta2,
  lambda = 0,
  method = "DP",
  w = 0.01,
  rotated = TRUE,
  isclosed = FALSE,
  mode = "O"
)

Value

return a List containing

gam

warping function

R

rotation matrix

tau

seed point

Arguments

beta1

curve 1, provided as a matrix of dimensions n×M for n-dimensional curve evaluated on M sample points

beta2

curve 1, provided as a matrix of dimensions n×M for n-dimensional curve evaluated on M sample points

lambda

controls amount of warping (default = 0)

method

controls which optimization method. Options are Dynamic Programming ("DP"). (default = "DP")

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

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
gam <- reparam_curve(beta[, , 1, 1], beta[, , 1, 5])$gam

Run the code above in your browser using DataLab