degreeSort | R Documentation |
Sort stochastic block model parameter in a unique way using its graphon
degreeSort(thetaInit, outTheta = TRUE, outPerm = FALSE)
thetaInit |
stochastic block model parameter to be sorted |
outTheta |
if TRUE returns the sorted stochastic block model parameter |
outPerm |
if TRUE returns the permutation of the blocks of the stochastic block model to provide the sorted stochastic block model parameter |
according to the values of outTheta and outPerm the function returns the sorted stochastic block model parameter or the associated permutation of the blocks of the stochastic block model or a list with both of them
theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2))
degreeSort(theta1)
theta2 <- list(pi=c(.5,.5), gamma=matrix(4:1/8,2,2))
degreeSort(theta2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.