mean.nvd | R Documentation |
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.
## S3 method for class 'nvd'
mean(x, weights = rep(1, length(x)), representation = "adjacency", ...)
x |
An |
weights |
A numeric vector specifying weights for each observation (default: equally weighted). |
representation |
A string specifying the graph representation to be used. Choices are adjacency, laplacian, modularity, graphon. Default is adjacency. |
... |
Other argument to be parsed to the |
The mean network in the chosen matrix representation assuming Euclidean geometry for now.
gnp_params <- list(p = 1/3)
x <- nvd(model = "gnp", n = 10L, model_params = gnp_params)
mean(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.