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)
Returns a list containing
dist matrix
matrix of warping functions
position
function mean
rtmatrix
sumdist
aligned srsf functions
estimator
estimator2
registered functions
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)
(defaults 1:dim(f)[2])
1: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_mean_bayes(simu_data$f, simu_data$time) }
Run the code above in your browser using DataLab