meanNet: Calculate the mean of a set of networks.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/meanNet.R

Description

Given a set of networks in matrix format, this function will calculate the cell-wise (Hadamard) mean.

Usage

1
meanNet(x, zero.na = TRUE)

Arguments

x

A list of networks to be used for calculating distances.

zero.na

LOGICAL: Should NA values be treated as zeros?

Value

Returns a matrix of means.

Author(s)

Matthew K. Lau

See Also

coNet

Examples

1
2
net.l <- lapply(1:10, function(x) matrix(runif(100), nrow = 10))
meanNet(net.l)

ECGen/coNet documentation built on Sept. 14, 2019, 5:24 a.m.