### Navigation

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

# scipy.spatial.distance.dice

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

  Computes the Dice dissimilarity between two boolean 1-D arrays.

  The Dice dissimilarity between u and v, is

  where is the number of occurrences of and for .

  Parameters : | u : (N,) ndarray, bool Input 1-D array. v : (N,) ndarray, bool Input 1-D array.
  Returns : | dice : double The Dice dissimilarity 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`) »
- scipy.spatial.distance »