Fitting function for open curves
Fits an elastic mean for open curves. Is usually called from compute_elastic_mean
.
fit_mean_closed(srv_data_curves, knots, max_iter, type, eps, pen_factor)
srv_data_curves
: list of data.frame
s with srv vectors in each row. Usually a result of a call to get_srv_from_points
knots
: set of knots for the mean spline curvemax_iter
: maximal number of iterationstype
: if "smooth" linear srv-splines are used which results in a differentiable mean curveeps
: the algorithm stops if L2 norm of coefficients changes lesspen_factor
: penalty factor forcing the mean to be closed if "polygon" the mean will be piecewise linear.a list
with entries - type: "smooth" or "polygon"
coefs: coefs
srv spline coefficients of the estimated mean
knots: spline knots
t_optims: optimal parametrization
shift_idxs: index of the starting point of the closed curve after alignment
Useful links