powered by
Convert adjacency function to the affinity matrix
adj_conv(adj.mat, alpha = 1)
the matrix if affinity values.
Adjacency matrix. The elements must be within [-1, 1].
soft threshold value (see details).
adj = exp(-(1-adj)^2/(2*alpha^2)) ref: Luxburg (2007), "A tutorial on spectral clustering", Stat Comput
Adj_mat = rbind(c(0.0,0.9,0.0), c(0.9,0.0,0.2), c(0.0,0.2,0.0)) adj_conv(Adj_mat)
Run the code above in your browser using DataLab