powered by
k-means for SBM
tauKmeansSbm(statistics, n, Q, directed)
Initial values for \(\tau\)
Statistics matrix \(N_{ijk}\), counting the events for the nodes pair \((i,j)\) during the subinterval \(k\)
Total number of nodes \(n\)
Total number of groups \(Q\)
Boolean for directed (TRUE) or undirected (FALSE) case
n <- 50 Q <- 3 Dmax <- 2^3 Nijk <- statistics(generated_Q3$data,n,Dmax,directed=FALSE) tau <- tauKmeansSbm(Nijk,n,Q,FALSE)
Run the code above in your browser using DataLab