Similarity and Distance Quantification Between Probability Functions
Overview
Computes 46 optimized distance and similarity measures for comparing probability functions (Drost (2018) doi:10.21105/joss.00765). These comparisons between probability functions have their foundations in a broad range of scientific disciplines from mathematics to ecology. The aim of this package is to provide a core framework for clustering, classification, statistical inference, goodness-of-fit, non-parametric statistics, information theory, and machine learning tasks that are based on comparing univariate or multivariate probability functions.
Updates
- The core distance calculation engine has been refactored to use C++ template metaprogramming and
RcppParallel. This provides significant speed and memory usage improvements fordistance(),dist_one_many(), anddist_many_many(). (see PR #40 by @brownag) - Default values for optional arguments (like
pfor the Minkowski distance) have been updated fromNAtoNULLin the R function signatures to better align with the C++ backend.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 60
- Examples that run
- 100%58 run in a plain check
- Exported functions with examples
- 97%
- Documented parameters
- 100%
- Return-value docs
- 20%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 10
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/drostlab/philentropy on 2026-10-21.
Dependencies
Installing philentropy adds 3 packages (2 with compiled code, 2.7 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppParallel 744 KB, poorman 137 KB.
Show all 21 packagesHide all 21 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.10.0Latest
- RR 4.5.0 released · 2025-04-11
- 0.9.02024-11-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.8.02023-12-02 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.7.02022-11-05 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.6.0
- RR 4.1.0 released · 2021-05-18
- 0.5.02021-05-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.4.02020-01-10 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.3.02019-02-13 · diff ↗ ·
added 44 exports
additive_symm_chi_sq, avg, bhattacharyya, canberra, chebyshev, clark_sq, cosine_dist, czekanowski, dice_dist, divergence_sq, euclidean, fidelity, gower, harmonic_mean_dist, hellinger, inner_product, intersection_dist, jaccard, jeffreys, jensen_difference, jensen_shannon, k_divergence, kulczynski_d, kullback_leibler_distance, kumar_hassebrook, kumar_johnson, lorentzian, manhattan, matusita, minkowski and 14 more
Package metadata
- First published
- 2017-04-26
- Total releases
- 13 / 9 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.1.2
- Download size
- 107 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("philentropy")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.