| align_new | R Documentation |
This function aligns new functions to the template SRVF (mqn) of an
fdawarp object with the same lambda, penalty and optimization method
used by time_warping() to fit it. When the fit smoothed the data
(smooth_data = TRUE), the new functions are smoothed the same way first.
align_new(x, f_new)
x |
An object of class |
f_new |
A numeric matrix of shape |
A list with components (one column per function):
fn: M \times K aligned functions;
qn: M \times K aligned SRVFs;
gam: M \times K warping functions.
## Not run:
out <- time_warping(simu_data$f, simu_data$time)
aligned <- align_new(out, simu_data$f[, 1:3])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.