public void printMemberReport(PrintWriter out,int member,Set<Integer> cluster) throws AdeException {
  out.printf("%-15s:\n",memberStr(member));
  final ListSortedByKey<Double,String> list=new ListSortedByKey<Double,String>();
  list.setValueNaturalOrder();
  for (  int i : cluster) {
    double info;
    info=mCoOccurrencesAndMiMatrix.get(member,i);
    list.add(info,memberStr(i));
  }
  list.invertKeyOrdering();
  out.printf("\t\tCluster relations:");
  for (int i=0; i < list.size(); ++i) {
    out.printf(" %f:%s",list.getKey(i),list.getValue(i));
  }
  out.println();
  list.clear();
  for (int i=0; i < mCoOccurrencesAndMiMatrix.getRowNum(); ++i) {
    if (cluster.contains(i)) {
      continue;
    }
    double info;
    info=mCoOccurrencesAndMiMatrix.get(member,i);
    list.add(info,memberStr(i));
  }
  out.printf("\t\tTop 5 out of cluster relations:");
  for (int i=0; i < Math.min(5,list.size()); ++i) {
    out.printf(" %f:%s",list.getKey(i),list.getValue(i));
  }
  out.println();
}

public void printMemberReport ( PrintWriter out , int member , Set < Integer > cluster ) throws AdeException { out . printf ( "%-15s:\n" , memberStr ( member ) ) ; final ListSortedByKey < Double , String > list = new ListSortedByKey < Double , String > ( ) ; list . setValueNaturalOrder ( ) ; for ( int i : cluster ) { double info ; info = mCoOccurrencesAndMiMatrix . get ( member , i ) ; list . add ( info , memberStr ( i ) ) ; } list . invertKeyOrdering ( ) ; out . printf ( "\t\tCluster relations:" ) ; for ( int i = 0 ; i < list . size ( ) ; ++ i ) { out . printf ( " %f:%s" , list . getKey ( i ) , list . getValue ( i ) ) ; } out . println ( ) ; list . clear ( ) ; for ( int i = 0 ; i < mCoOccurrencesAndMiMatrix . getRowNum ( ) ; ++ i ) { if ( cluster . contains ( i ) ) { continue ; } double info ; info = mCoOccurrencesAndMiMatrix . get ( member , i ) ; list . add ( info , memberStr ( i ) ) ; } out . printf ( "\t\tTop 5 out of cluster relations:" ) ; for ( int i = 0 ; i < Math . min ( 5 , list . size ( ) ) ; ++ i ) { out . printf ( " %f:%s" , list . getKey ( i ) , list . getValue ( i ) ) ; } out . println ( ) ; }
print details of a specific member of a cluster
