mean_bayes: Mean element in Bayes space

Description Usage Arguments Value Examples

Description

Mean element in Bayes space

Usage

1
2
mean_bayes(tensor_list, weights = uniform_weights(tensor_list),
  shrinkage = 0, tensor_ref, do_projection = FALSE)

Arguments

tensor_list

A list of 3x3 symmetric matrices.

weights

A numeric vector specifying the weight of each observation (default: equiprobability).

shrinkage

A scalar between 0 and 1 specifying how much do we want to shrink the arithmetic mean towards the reference tensor (default: 0).

tensor_ref

The SDP tensor associated to the reference measure of the Bayes space.

do_projection

A boolean specifying whether the result of the operation should be projected onto the space of diffusion signals (default not to).

Value

A 3x3 symmetric matrix.

Examples

1
2
3
D <- list(D1 = diag(c(1.7, 0.3, 0.1)) * 1e-3,
          D2 = diag(c(0.3, 1.7, 0.1)) * 1e-3)
mean_bayes(D)

astamm/bayesr documentation built on May 10, 2019, 2:05 p.m.