bundles / scipy 1.17.1 / 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: ndarrayThe linkage matrix.
R: ndarrayThe R matrix.
max_rfs: ndarrayThe array to store the result. Note that this input arrays gets modified in-place.
n: intThe number of observations.
rf: intIndicate which column of
Ris used.
Aliases
-
scipy.cluster._hierarchy.get_max_Rfield_for_each_cluster