adj_conv {ConsensusClustering} | R Documentation |
Convert adjacency function to the affinity matrix
Description
Convert adjacency function to the affinity matrix
Usage
adj_conv(adj.mat, alpha = 1)
Arguments
adj.mat |
Adjacency matrix. The elements must be within [-1, 1]. |
alpha |
soft threshold value (see details). |
Details
adj = exp(-(1-adj)^2/(2*alpha^2)) ref: Luxburg (2007), "A tutorial on spectral clustering", Stat Comput
Value
the matrix if affinity values.
Examples
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)
[Package ConsensusClustering version 1.5.0 Index]