powered by
This function calculates karcher mean of functions using Bayesian method
function_mean_bayes(f, time, times = 5, group = 1:dim(f)[2], showplot = TRUE)
matrix (\(N\) x \(M\)) of \(M\) functions with \(N\) samples
sample points of functions
factor of length of subsample points to look at (default = 5)
(default 1:dim(f)[2])
shows plots of functions (default = T)
Returns a list containing
dist matrix
matrix of warping functions
position
function mean
rtmatrix
sumdist
aligned srsf functions
estimator
estimator2
registered functions
Cheng, W., Dryden, I. L., and Huang, X. (2016). Bayesian registration of functions and curves. Bayesian Analysis, 11(2), 447-475.
# NOT RUN { data("simu_data") out = function_mean_bayes(simu_data$f, simu_data$time) # }
Run the code above in your browser using DataLab