find_optimal_t: Optimal alignment to a smooth curve

View source: R/find_optimal_t.R

find_optimal_tR Documentation

Optimal alignment to a smooth curve

Description

Finds optimal alignment for a discrete open srv curve to a smooth curve

Usage

find_optimal_t(srv_curve, s, q, initial_t = s, eps = 10 * .Machine$double.eps)

Arguments

srv_curve

srv transformation of the smooth curve, needs to be vectorized

s

time points for q, first has to be 0, last has to be 1

q

square root velocity vectors, one less than time points in s

initial_t

starting value for the optimization algorithm

eps

convergence tolerance

Value

optimal time points for q, without first value 0 and last value 1, optimal time points have the distance of the observation to the srv_curve as an attribute


elasdics documentation built on June 22, 2024, 12:27 p.m.