Skip to content

Kernel Measure of Multi-Sample Dissimilarity

0packages dependsuggested by 1
2.7Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Implementations of the kernel measure of multi-sample dissimilarity (KMD) between several samples using K-nearest neighbor graphs and minimum spanning trees. The KMD measures the dissimilarity between multiple samples, based on the observations from them. It converges to the population quantity (depending on the kernel) which is between 0 and 1. A small value indicates the multiple samples are from the same distribution, and a large value indicates the corresponding distributions are different. The population quantity is 0 if and only if all distributions are the same, and 1 if and only if all distributions are mutually singular. The package also implements the tests based on KMD for H0: the M distributions are equal against H1: not all the distributions are equal. Both permutation test and asymptotic test are available. These tests are consistent against all alternatives where at least two samples have different distributions. For more details on KMD and the associated tests, see Huang, Z. and B. Sen (2024) doi:10.1080/01621459.2023.2298036.

Changes in 0.1.1
  • Update for mlpack 4.8.0 API change.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-15
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.1
READMEYes · 565 wordsVignettesNoNEWSYes · 67% structured · mentions 0.1.1Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
2
Examples that run
100%2 run in a plain check
Exported functions with examples
100%
Documented parameters
81%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.7K
CRAN downloads in the past year
Rank #18,151 · ~7/day · ~221/mo
Daily download trend is not available in this view yet.
20230 days
71890 days
2.7K1 year
Compare downloads with other packages →
Also on83 r2u2 autocran

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing KMD adds 16 packages (13 with compiled code, 19 MB of source tarballs). Heaviest: data.table 5.7 MB, igraph 4.8 MB, mlpack 2.0 MB.

Depends (2)
R >= 4.5.0data.table
Imports (5)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2022)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.1.1Latest
    record
    2026-07-09 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.0
    record
    2022-10-06
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-10-06
Total releases
2 / 4 yrs
License
GPL-3 OSI
Minimum R
≥ 4.5.0
Download size
7.7 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("KMD")
Huang, Z. (2026). KMD: Kernel Measure of Multi-Sample Dissimilarity (Version 0.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.KMD

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for KMD version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy