NetFVar | R Documentation |
Obtain Fréchet variance for graph Laplacian matrices, covariance matrices, or correlation matrices with respect to the Frobenius distance.
NetFVar(Ly = NULL)
Ly |
A list (length n) of m by m matrices or a m by m by n array where
|
A list containing the following fields:
NetFVar |
A scalar holding the Fréchet variance. |
NetFMean |
A matrix holding the Fréchet mean. |
set.seed(1)
n <- 100
U <- pracma::randortho(10)
Ly <- lapply(1:n, function(i) {
U %*% diag(rexp(10, (1:10)/2)) %*% t(U)
})
res <- NetFVar(Ly)
res$NetFVar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.