This is documentation for an old release of SciPy (version 0.12.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Computes the Bray-Curtis distance between two 1-D arrays.
Bray-Curtis distance is defined as
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 : (N,) array_like
v : (N,) array_like
|
---|---|
Returns : | braycurtis : double
|