public void terminate(ClusModel model) throws IOException { CompleteTreeIterator iter = new CompleteTreeIterator((ClusNode) model); while (iter.hasMoreNodes()) { ClusNode node = (ClusNode) iter.getNextNode(); node.getClusteringStat().calcMean(); } }
public void initialize(ClusModel model, ClusSchema schema) { CompleteTreeIterator iter = new CompleteTreeIterator((ClusNode) model); while (iter.hasMoreNodes()) { ClusNode node = (ClusNode) iter.getNextNode(); ClusStatistic stat = m_Clone.cloneStat(); node.setClusteringStat(stat); stat.setSDataSize(1); } }