### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Clustering package (`scipy.cluster`) »
- Hierarchical clustering (`scipy.cluster.hierarchy`) »

# scipy.cluster.hierarchy.is_valid_im

`scipy.cluster.hierarchy.``is_valid_im`(R, warning=False, throw=False, name=None)

  Returns True if the inconsistency matrix passed is valid. It must be a by 4 numpy array of doubles. The standard deviations `R[:,1]` must be nonnegative. The link counts `R[:,2]` must be positive and no greater than .

  Arguments : | R : ndarray The inconsistency matrix to check for validity. warning : bool When `True`, issues a Python warning if the linkage matrix passed is invalid. throw : bool When `True`, throws a Python exception if the linkage matrix passed is invalid. name : string This string refers to the variable name of the invalid linkage matrix.
  Returns : | b : bool True iff the inconsistency matrix is valid.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Clustering package (`scipy.cluster`) »
- Hierarchical clustering (`scipy.cluster.hierarchy`) »