add_bayes: Addition in Bayes space

Description Usage Arguments Value Examples

Description

Addition in Bayes space

Usage

1
add_bayes(tensor1, tensor2, tensor_ref, do_projection = FALSE)

Arguments

tensor1

A 3x3 symmetric matrix.

tensor2

A 3x3 symmetric matrix.

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
4
D1 <- diag(c(1.7, 0.3, 0.1)) * 1e-3
D2 <- diag(c(0.3, 1.7, 0.1)) * 1e-3
Dr <- diag(c(1.7, 0.3, 0.1)) * 1e-3
add_bayes(D1, D2, Dr)

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