jsDist | R Documentation |
Jensen–Shannon distance metric (i.e. the square root of the Jensen–Shannon divergence) between the columns of a dense matrix m
jsDist(m)
m |
Input matrix |
Vectorized version of the lower triangle as an R distance object, stats::dist()
ex = matrix(1:9, nrow = 3, ncol = 3)
jsDist(ex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.