(squared) L2-norm of the graphons associated with two stochastic block model parameters
graphonL2norm(theta1, theta2)
theta1
: a stochastic block model parametertheta2
: a stochastic block model parameter(squared) L2-norm of the graphons associated with two stochastic block model parameters
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)) graphonL2norm(theta1, theta2)
Useful links