symmetric: Turns asymetric network into an symmetric network. Helper...

Description Usage Arguments Value Examples

View source: R/dgm.R

Description

Turns asymetric network into an symmetric network. Helper function to determine the detection of a connection while ignoring directionality.

Usage

1

Arguments

M

3D matrix nodes x nodes x subjects

Value

3D matrix nodes x nodes x subjects

Examples

1
2
3
4
M=array(NA, dim=c(3,3,2))
M[,,1]=matrix(c(0,0,0,1,0,0,0,1,0),3,3)
M[,,2]=matrix(c(0,0,0,1,0,0,0,0,0),3,3)
M_=symmetric(M)

DGM documentation built on Dec. 11, 2021, 9:54 a.m.