### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Spatial algorithms and data structures (`scipy.spatial`) »
- Distance computations (`scipy.spatial.distance`) »

# scipy.spatial.distance.braycurtis

`scipy.spatial.distance.``braycurtis`(u, v)

  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 Input array. v : (N,) array_like Input array.
  Returns : | braycurtis : double The Bray-Curtis distance between 1-D arrays u and v.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Spatial algorithms and data structures (`scipy.spatial`) »
- Distance computations (`scipy.spatial.distance`) »