Learn R Programming

graphclust (version 1.3)

sbmNorm: (squared) norm between two stochastic block models

Description

the norm is the minimal graphon distance between two stochastic block model parameters obtained with the best permutations of the parameters

Usage

sbmNorm(theta1, theta2)

Value

(squared) norm between two stochastic block models

Arguments

theta1

a stochastic block model parameter

theta2

a stochastic block model parameter

Examples

Run this code
theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2))
theta2 <- list(pi=c(.5,.5), gamma=matrix(4:1/8,2,2))
theta3 <- list(pi=c(.5,.5), gamma=matrix(1:4/4,2,2))
sbmNorm(theta1, theta2)
sbmNorm(theta1, theta3)
sbmNorm(theta2, theta3)

Run the code above in your browser using DataLab