tauKmeansSbm: k-means for SBM

Description Usage Arguments Value Examples

View source: R/initialization.R

Description

k-means for SBM

Usage

1
tauKmeansSbm(statistics, n, Q, directed)

Arguments

statistics

Statistics matrix N_{ijk}, counting the events for the nodes pair (i,j) during the subinterval k

n

Total number of nodes n

Q

Total number of groups Q

directed

Boolean for directed (TRUE) or undirected (FALSE) case

Value

Initial values for τ

Examples

1
2
3
4
5
6
7
8
n <- 50
Q <- 3

Dmax <- 2^3

Nijk <- statistics(generated_Q3$data,n,Dmax,directed=FALSE)

tau <- tauKmeansSbm(Nijk,n,Q,FALSE)

ppsbm documentation built on March 19, 2018, 5:03 p.m.