bundles / scipy 1.17.1 / scipy / cluster / _hierarchy / inconsistent
cython_function_or_method
scipy.cluster._hierarchy:inconsistent
Signature
def inconsistent ( Z , R , n , d ) Summary
Calculate the inconsistency statistics.
Parameters
Z: ndarrayThe linkage matrix.
R: ndarrayA (n - 1) x 4 matrix to store the result (hence this input array is modified in-place). The inconsistency statistics
R[i]are calculated overdlevels below clusteri.R[i, 0]is the mean of distances.R[i, 1]is the standard deviation of distances.R[i, 2]is the number of clusters included.R[i, 3]is the inconsistency coefficient.n: intThe number of observations.
d: intThe number of levels included in calculation below a node.
Aliases
-
scipy.cluster._hierarchy.inconsistent