Description Usage Arguments Value Author(s) Examples
View source: R/affinityMatrix.R
calculate the affinity matrix from the diff matrix with 20 neighbors
1 | affinityMatrix(Diff, K = 20, sigma = 0.5)
|
Diff |
A diff matrix |
K |
The number of neighbors in consideration |
sigma |
A parameter to determine the scale |
W The similarity matrix
Xiaoyao Yin
1 2 3 | data_list <- simu_data_gen()
Diff <- dist2eu(Standard_Normalization(data_list[[1]]),Standard_Normalization(data_list[[1]]))
simi <- affinityMatrix(Diff,20,0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.