public static String printCanopyAssignments(Instances dataPoints,List<long[]> canopyAssignments){
  StringBuilder temp=new StringBuilder();
  for (int i=0; i < dataPoints.size(); i++) {
    temp.append("Cluster " + i + ": ");
    temp.append(dataPoints.instance(i));
    if (canopyAssignments != null && canopyAssignments.size() == dataPoints.size()) {
      long[] assignments=canopyAssignments.get(i);
      temp.append(printSingleAssignment(assignments));
    }
    temp.append("\n");
  }
  return temp.toString();
}

public static String printCanopyAssignments ( Instances dataPoints , List < long [ ] > canopyAssignments ) { StringBuilder temp = new StringBuilder ( ) ; for ( int i = 0 ; i < dataPoints . size ( ) ; i ++ ) { temp . append ( "Cluster " + i + ": " ) ; temp . append ( dataPoints . instance ( i ) ) ; if ( canopyAssignments != null && canopyAssignments . size ( ) == dataPoints . size ( ) ) { long [ ] assignments = canopyAssignments . get ( i ) ; temp . append ( printSingleAssignment ( assignments ) ) ; } temp . append ( "\n" ) ; } return temp . toString ( ) ; }
print the supplied instances and their canopies
