graph.acf | R Documentation |
The function graph.acf
computes estimates of the autocorrelation
function for graphs.
graph.acf(Graphs, plot = TRUE)
Graphs |
a list of undirected graphs.
If each graph has the attribute |
plot |
logical. If |
An object of class acf.
Fujita, A., Takahashi, D. Y., Balardin, J. B., Vidal, M. C. and Sato, J. R. (2017) Correlation between graphs with an application to brain network analysis. _Computational Statistics & Data Analysis_ *109*, 76-92.
set.seed(1)
G <- list()
p <- array(0, 100)
p[1:3] <- rnorm(3)
for (t in 4:100) {
p[t] <- 0.5*p[t-3] + rnorm(1)
}
ma <- max(p)
mi <- min(p)
p <- (p - mi)/(ma-mi)
for (t in 1:100) {
G[[t]] <- igraph::sample_gnp(100, p[t])
}
graph.acf(G, plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.