{ } Raw JSON

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 : ndarray

The linkage matrix.

R : ndarray

A (n - 1) x 4 matrix to store the result (hence this input array is modified in-place). The inconsistency statistics R[i] are calculated over d levels below cluster i. 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 : int

The number of observations.

d : int

The number of levels included in calculation below a node.

Aliases

  • scipy.cluster._hierarchy.inconsistent