This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / cluster / hierarchy / _hierarchy / cluster_in

cython_function_or_method

scipy.cluster.hierarchy._hierarchy:cluster_in

Signature

def cluster_in(Z, R, T, cutoff, n)

Summary

Form flat clusters by inconsistent criterion.

Parameters

Z : ndarray

The linkage matrix.

R : ndarray

The inconsistent matrix.

T : ndarray

The array to store the cluster numbers. The i'th observation belongs to cluster T[i].

cutoff : double

Clusters are formed when the inconsistent values are less than or or equal to cutoff.

n : int

The number of observations.

Aliases

  • scipy.cluster.hierarchy._hierarchy.cluster_in