powered by
This function aligns two functions using Bayesian SRSF framework. It will align f2 to f1
pair_align_functions_bayes( f1, f2, timet, iter = 15000, times = 5, tau = ceiling(times * 0.4), powera = 1, showplot = TRUE, extrainfo = FALSE )
Returns a list containing
function 1
registered function using quotient space
warping function quotient space
registered function using ambient space
warping function ambient space
posterior samples from warping function (returned if extrainfo=TRUE)
posterior samples from the distances (returned if extrainfo=TRUE)
posterior samples from kappa (returned if extrainfo=TRUE)
log-likelihood of each sample (returned if extrainfo=TRUE)
vector of acceptance ratios for the warping function (returned if extrainfo=TRUE)
function 2
sample points of functions
number of iterations (default = 15000)
factor of length of subsample points to look at (default = 5)
standard deviation of Normal prior for increment (default ceil(times*.4))
Dirichlet prior parameter (default 1)
shows plots of functions (default = T)
T/F whether additional information is returned
Cheng, W., Dryden, I. L., and Huang, X. (2016). Bayesian registration of functions and curves. Bayesian Analysis, 11(2), 447-475.
out <- pair_align_functions_bayes( f1 = simu_data$f[, 1], f2 = simu_data$f[, 2], timet = simu_data$time )
Run the code above in your browser using DataLab