function_mean_bayes: Bayesian Karcher Mean Calculation

View source: R/function_mean_bayes.R

function_mean_bayesR Documentation

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)

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)

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

References

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

Examples

## Not run: 
  out <- function_mean_bayes(simu_data$f, simu_data$time)

## End(Not run)

fdasrvf documentation built on Nov. 19, 2023, 1:09 a.m.