mean.nvd: Fréchet Mean of Network-Valued Data

Description Usage Arguments Value Examples

Description

This function computes the sample Fréchet mean from an observed sample of network-valued random variables according to a specified matrix representation. It currently only supports the Euclidean geometry i.e. the sample Fréchet mean is obtained as the argmin of the sum of squared Frobenius distances.

Usage

1
2
3
## S3 method for class 'nvd'
mean(x, weights = rep(1, length(x)),
  representation = "adjacency", ...)

Arguments

x

An nvd object.

weights

A numeric vector specifying weights for each observation (default: equally weighted).

representation

A string specifying the graph representation to be used (choices: adjacency [default], laplacian, modularity, graphon).

...

Other argument to be parsed to the mean function.

Value

The mean network in the chosen matrix representation assuming Euclidean geometry for now.

Examples

1
2
d <- nvd(n = 10L)
mean(d)

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