dist_cen | R Documentation |
Calculate the Centroid (Euclidean) 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.
dist_cen(x, group)
x |
|
group |
|
A numeric value of distance
Jung Ae Lee <jungae.lee@umassmed.edu>
data(leukemia)
group = leukemia$Y # 38 patients status with a value of 1 or 2
x = leukemia$X # 38 by 3051 genes
# apply the function
dist_cen(x, group) # 25.4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.