{ } Raw JSON

bundles / scipy latest / scipy / cluster / _hierarchy / get_max_Rfield_for_each_cluster

cython_function_or_method

scipy.cluster._hierarchy:get_max_Rfield_for_each_cluster

Signature

def   get_max_Rfield_for_each_cluster ( Z R max_rfs n rf )

Summary

Get the maximum statistic for each non-singleton cluster. For the i'th non-singleton cluster, max_rfs[i] = max{R[j, rf] j is a descendent of i}.

Parameters

Z : ndarray

The linkage matrix.

R : ndarray

The R matrix.

max_rfs : ndarray

The array to store the result. Note that this input arrays gets modified in-place.

n : int

The number of observations.

rf : int

Indicate which column of R is used.

Aliases

  • scipy.cluster._hierarchy.get_max_Rfield_for_each_cluster