Learn R Programming

distanceHD (version 1.2)

dist_mdp: Maximal data piling (MDP) distance between two groups

Description

Calculate the MDP (maximal data piling) distance between two groups in a high-dimensional space (d > n), with support for a single-member cluster. It also works in low-dimensional settings.

Usage

dist_mdp(x, group)

Value

A numeric value of distance

Arguments

x

x is n by d matrix

group

group is a binary group label with the length of n1 and n2

Author

Jeongyoun Ahn <jyahn@kaist.ac.kr>

Examples

Run this code
data(leukemia)
group = leukemia$Y      # 38 patients status with a value of 1 or 2
x = leukemia$X          # 38 x 3051 genes

# apply the function
dist_mah(x, group)   # 26.8 

Run the code above in your browser using DataLab