Distance Diversity between Probability Density Functions
This function computes all distance values between two probability density functions that are available in getDistMethods
and returns a vector storing the corresponding distance measures. This vector is named distance diversity vector.
dist.diversity(x, p, test.na = FALSE, unit = "log2")
x |
a numeric |
p |
power of the Minkowski distance. |
test.na |
a boolean value indicating whether input vectors should be tested for NA values. Faster computations if |
unit |
a character string specifying the logarithm unit that should be used to compute distances that depend on log computations. Options are:
|
Hajk-Georg Drost
dist.diversity(rbind(1:10/sum(1:10), 20:29/sum(20:29)), p = 2, unit = "log2")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.