This is documentation for an old release of SciPy (version 0.9.0). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
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.
|