Description Usage Arguments Value Note Author(s) References Examples
Calculates canberra distance between two vectors. In brief, the higher the canberra distance the greater the 'distance' between the two vectors (i.e. they are less similar).
1 | canberra(x, y)
|
x |
numeric vector of ranks |
y |
numeric vector of ranks with compatible length to x |
Returns the canberra distance for the two vectors
The canberra_stability
function is used
internally to return the canberra metric.
Charles E. Determan Jr.
Jurman G., Merler S., Barla A., Paoli S., Galea A., & Furlanello C. (2008) Algebraic stability indicators for ranked lists in molecular profiling. Bioinformatics 24(2): 258-264.
He. Z. & Weichuan Y. (2010) Stable feature selection for biomarker discovery. Computational Biology and Chemistry 34 215-225.
1 2 3 4 5 6 | # Canberra demo
v1 <- seq(10)
v2 <- sample(v1, 10)
canberra(v1, v2)
canberra_stability(v1, v2)
|
[1] 2.752969
[1] 0.3943468
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.