Learn R Programming

brainGraph (version 2.7.3)

symm_mean: Symmetrize a matrix with the mean of off-diagonal elements

Description

symm_mean returns a symmetric matrix in which the off-diagonal elements \(A[i, j]\) and \(A[j, i]\) are equal to the mean of the values in the input matrix.

Usage

symm_mean(A)

Arguments

A

Numeric matrix

Value

Numeric matrix