(C++) Sørensen Distance Between Two Binary Vectors
Computes the Sørensen distance, suitable for presence/absence data.
distance_sorensen_cpp(x, y)
x
: (required, numeric vector).y
: (required, numeric vector) of same length as x
.numeric
distance_sorensen_cpp(x = c(0, 1, 1, 0), y = c(1, 1, 0, 0))
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_russelrao_cpp()