powered by
Jensen–Shannon distance metric (i.e. the square root of the Jensen–Shannon divergence) between the columns of a dense matrix m
jsDist(m)
Vectorized version of the lower triangle as an R distance object, stats::dist()
Input matrix
ex = matrix(1:9, nrow = 3, ncol = 3) jsDist(ex)
Run the code above in your browser using DataLab