Description Usage Arguments Details Value See Also Examples
View source: R/as.dist.similarity-functions.R
This function converts a similarity
matrix
into a dist
matrix.
1 2 3 |
m |
matrix |
diag |
logical, should
|
upper |
logical, should
|
To transform the similarity matrix into a distance matrix the following equation is used: d = sqrt{s[i,i] + s[j,j] - 2s[i,j]}
an object of class dist
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.