public String printCategoryDistribution(SortedMap<Integer, Double> categoryDistribution) {
   StringBuilder scoreValues = new StringBuilder();
   LOG.debug("output category distribution:");
   scoreValues.append("scores<-c(");
   for (Map.Entry<Integer, Double> score : categoryDistribution.entrySet()) {
     String name = treeCache.getNameById(score.getKey(), String.valueOf(score.getKey()));
     LOG.debug(name + "\t\t" + score.getValue() + "\t" + treeCache.getDepth(score.getKey()));
     if (scoreValues.length() > 10) {
       scoreValues.append(", ");
     }
     scoreValues.append(score.getValue());
   }
   scoreValues.append(")");
   return scoreValues.toString();
 }