dist_nvd: Pairwise Distance Matrix Between Two Samples of Networks

Description Usage Arguments Value Examples

Description

This function computes the matrix of pairwise distances between all the elements of the two samples put together. The cardinality of the fist sample is denoted by n1 and that of the second one is denoted by n2.

Usage

1
2
dist_nvd(x, y = NULL, representation = "adjacency",
  distance = "frobenius")

Arguments

x

A list of igraph objects or matrix representations of underlying networks from a given first population.

y

A list of igraph objects or matrix representations of underlying networks from a given second population.

representation

A string specifying the desired type of representation, among: "adjacency", "laplacian" [default], "modularity" or "graphon".

distance

A string specifying the chosen distance for calculating the test statistic, among: "hamming", "frobenius" [default], "spectral" and "root-euclidean".

Value

A matrix of dimension (n1+n2) \times (n1+n2) containing the distances between all the elements of the two samples put together.

Examples

1
2
3
x <- nvd("smallworld", 10)
y <- nvd("pa", 10)
dist_nvd(x, y, "adjacency", "spectral")

ilovato/nevada documentation built on May 30, 2019, 9:47 p.m.