Skip to main content
. 2021 May 13;21(10):3410. doi: 10.3390/s21103410
Algorithm 2 Selection based on Cluster-level Constraints
Input:     Let T={C2,...,Ck} be the set of cluster candidates of the condensed cluster tree (excluding the root), LT the set of leaf clusters and XT the set of constraint clusters. Let Ai={j|Cj is ancestor of Ci} denote the set of ancestor indices for a cluster Ci. Let δi{0,1} be Boolean indicator whether a cluster is selected or not.
    Initialize δi=0 for i=2,...,k.
  1. i:CiX, go up the tree and set X=X{Cj} for every unprocessed jAi

  2. i:CiL, go up the tree and set δi=1 if CPARENT(Ci)X or root