tauKmeansSbm function

k-means for SBM

k-means for SBM

tauKmeansSbm(statistics, n, Q, directed)

Arguments

  • statistics: Statistics matrix NijkN_{ijk}, counting the events for the nodes pair (i,j)(i,j) during the subinterval kk
  • n: Total number of nodes nn
  • Q: Total number of groups QQ
  • directed: Boolean for directed (TRUE) or undirected (FALSE) case

Returns

Initial values for τ\tau

Examples

n <- 50 Q <- 3 Dmax <- 2^3 Nijk <- statistics(generated_Q3$data,n,Dmax,directed=FALSE) tau <- tauKmeansSbm(Nijk,n,Q,FALSE)