Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dist.diversity

Distance Diversity between Probability Density Functions


Description

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.

Usage

dist.diversity(x, p, test.na = FALSE, unit = "log2")

Arguments

x

a numeric data.frame or matrix (storing probability vectors) or a numeric data.frame or matrix storing counts (if est.prob is specified).

p

power of the Minkowski distance.

test.na

a boolean value indicating whether input vectors should be tested for NA values. Faster computations if test.na = FALSE.

unit

a character string specifying the logarithm unit that should be used to compute distances that depend on log computations. Options are:

  • unit = "log"

  • unit = "log2"

  • unit = "log10"

Author(s)

Hajk-Georg Drost

Examples

dist.diversity(rbind(1:10/sum(1:10), 20:29/sum(20:29)), p = 2, unit = "log2")

philentropy

Similarity and Distance Quantification Between Probability Functions

v0.4.0
GPL-2
Authors
Hajk-Georg Drost [aut, cre] (<https://orcid.org/0000-0002-1567-306X>)
Initial release
2020-01-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.