distance_russelrao_cpp | R Documentation |
Computes the Russell-Rao distance between two binary vectors.
distance_russelrao_cpp(x, y)
x |
(required, numeric). Binary vector of 1s and 0s. |
y |
(required, numeric) Binary vector of 1s and 0s of same length as |
numeric
Other Rcpp_distance_methods:
distance_bray_curtis_cpp()
,
distance_canberra_cpp()
,
distance_chebyshev_cpp()
,
distance_chi_cpp()
,
distance_cosine_cpp()
,
distance_euclidean_cpp()
,
distance_hamming_cpp()
,
distance_hellinger_cpp()
,
distance_jaccard_cpp()
,
distance_manhattan_cpp()
,
distance_sorensen_cpp()
distance_russelrao_cpp(c(0, 1, 0, 1), c(1, 1, 0, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.