sccore (version 0.1.2)

jsDist: Jensen<U+2013>Shannon distance metric (i.e. the square root of the Jensen<U+2013>Shannon divergence) between the columns of a dense matrix m

Description

Jensen<U+2013>Shannon distance metric (i.e. the square root of the Jensen<U+2013>Shannon divergence) between the columns of a dense matrix m

Usage

jsDist(m, ncores = 1L)

Arguments

m

Input matrix

ncores

integer Number of cores (default=1)

Value

Vectorized version of the lower triangle as an R distance object, stats::dist()

Examples

Run this code
# NOT RUN {
ex = matrix(1:9, nrow = 3, ncol = 3)
jsDist(ex)

# }

Run the code above in your browser using DataCamp Workspace