Calculate the numerator and denominator components of the Bray-Curtis dissimilarity index.
The Bray-Curtis dissimilarity is calculated as \(\frac{\sum_{i} |x_i - y_i|}{\sum_{i} (x_i + y_i)}\)
Usage
bray1(x, y)
Arguments
x
numeric vector of the first sample to be compared
y
numeric vector of the second sample to be compared
Value
A named numeric vector with two elements:
num - numerator: sum of absolute differences between x and y