powered by
This function aligns a set of functions using Bayesian SRSF framework
function_group_warp_bayes( f, time, iter = 50000, powera = 1, times = 5, tau = ceiling(times * 0.04), gp = seq(dim(f)[2]), showplot = TRUE )
Returns a list containing
original functions
f aligned quotient space
warping functions quotient space
f aligned ambient space
warping ambient space
mean srsf
matrix (\(N\) x \(M\)) of \(M\) functions with \(N\) samples
sample points of functions
number of iterations (default = 150000)
Dirichlet prior parameter (default 1)
factor of length of subsample points to look at (default = 5)
standard deviation of Normal prior for increment (default ceil(times*.4))
number of colors in plots (defaults seq(dim(f)[2]))
seq(dim(f)[2])
shows plots of functions (default = T)
Cheng, W., Dryden, I. L., and Huang, X. (2016). Bayesian registration of functions and curves. Bayesian Analysis, 11(2), 447-475.
if (FALSE) { out <- function_group_warp_bayes(simu_data$f, simu_data$time) }
Run the code above in your browser using DataLab