Description Usage Arguments Value Examples

View source: R/initialization.R

k-means for SBM

1 | ```
tauKmeansSbm(statistics, n, Q, directed)
``` |

`statistics` |
Statistics matrix |

`n` |
Total number of nodes |

`Q` |
Total number of groups |

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

Initial values for *τ*

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.