distNet: Network distance for a set of networks.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/distNet.R

Description

Takes a list of networks and returns a distance matrix using Euclidean distance.

Usage

1
distNet(x, zero.na = TRUE, method = "euclidean")

Arguments

x

A list of networks to be used for calculating distances.

zero.na

LOGICAL: Should NA values be treated as zeros?

method

Distance/dissimilarity method to use: "euclidean" or "bray" for Bray-Curtis.

Details

This function computes the Euclidean (i.e. straight line) distance using all edges for all pairs of networks in a list of networks. The mathematics of using Euclidean distance to summarize the difference between two networks has not been explored fully, so use with caution.

Value

Returns a distance objects of pairwise distance or dissimilarities for all networks.

Author(s)

Matthew K. Lau

See Also

coNet

Examples

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

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