Computes the Bray-Curtis distance between two n-vectors u and v, which is defined as
\sum{|u_i-v_i|} / \sum{|u_i+v_i|}.
The Bray-Curtis distance is in the range [0, 1] if all coordinates are positive, and is undefined if the inputs are of length zero.
Parameters : | u : ndarray
v : ndarray
|
---|---|
Returns : | d : double
|