Checks the validity of a linkage matrix.
A linkage matrix is valid if it is a two dimensional ndarray (type double) with n rows and 4 columns. The first two columns must contain indices between 0 and 2n-1. For a given row i, 0 \leq \mathtt{Z[i,0]} \leq i+n-1 and 0 \leq Z[i,1] \leq i+n-1 (i.e. a cluster cannot join another cluster unless the cluster being joined has been generated.)
Parameters : | Z : array_like
warning : bool, optional
throw : bool, optional
name : str, optional
|
---|---|
Returns : | b : bool
|