View source: R/basic_functions.R

adj_conv | R Documentation |

Convert adjacency function to the affinity matrix

```
adj_conv(adj.mat, alpha = 1)
```

`adj.mat` |
Adjacency matrix. The elements must be within [-1, 1]. |

`alpha` |
soft threshold value (see details). |

adj = exp(-(1-adj)^2/(2*alpha^2)) ref: Luxburg (2007), "A tutorial on spectral clustering", Stat Comput

the matrix if affinity values.

```
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)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.