Learn R Programming

fdasrvf (version 2.3.6)

function_mean_bayes: Bayesian Karcher Mean Calculation

Description

This function calculates karcher mean of functions using Bayesian method

Usage

function_mean_bayes(f, time, times = 5, group = 1:dim(f)[2], showplot = TRUE)

Value

Returns a list containing

distfamily

dist matrix

match.matrix

matrix of warping functions

position

position

mu_5

function mean

rtmatrix

rtmatrix

sumdist

sumdist

qt.fitted

aligned srsf functions

estimator

estimator

estimator2

estimator2

regfuncs

registered functions

Arguments

f

matrix (\(N\) x \(M\)) of \(M\) functions with \(N\) samples

time

sample points of functions

times

factor of length of subsample points to look at (default = 5)

group

(defaults 1:dim(f)[2])

showplot

shows plots of functions (default = T)

References

Cheng, W., Dryden, I. L., and Huang, X. (2016). Bayesian registration of functions and curves. Bayesian Analysis, 11(2), 447-475.

Examples

Run this code
if (FALSE) {
  out <- function_mean_bayes(simu_data$f, simu_data$time)
}

Run the code above in your browser using DataLab