dist_many_many | R Documentation |
This functions computes the distance/dissimilarity between two sets of probability density functions.
dist_many_many(
dists1,
dists2,
method,
p = NA_real_,
testNA = TRUE,
unit = "log",
epsilon = 1e-05
)
dists1 |
a numeric matrix storing distributions in its rows. |
dists2 |
a numeric matrix storing distributions in its rows. |
method |
a character string indicating whether the distance measure that should be computed. |
p |
power of the Minkowski distance. |
testNA |
a logical value indicating whether or not distributions shall be checked for |
unit |
type of
|
epsilon |
epsilon a small value to address cases in the distance computation where division by zero occurs. In
these cases, x / 0 or 0 / 0 will be replaced by |
A matrix of distance values
set.seed(2020-08-20)
M1 <- t(replicate(10, sample(1:10, size = 10) / 55))
M2 <- t(replicate(10, sample(1:10, size = 10) / 55))
result <- dist_many_many(M1, M2, method = "euclidean", testNA = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.