@ Override public void processNewResult ( ResultHierarchy hier , Result result ) { // Get all new clusterings // TODO: handle clusterings added later, too. Can we update the result? List < Clustering < ? > > clusterings = Clustering . getClusteringResults ( result ) ; // Abort if not enough clusterings to compare if ( clusterings . size ( ) < 2 ) { return ; } // create segments Segments segments = new Segments ( clusterings ) ; hier . add ( result , segments ) ; }
Perform clusterings evaluation