protected String sourceClass(Attribute c,double[] dist){
  if (c.isNominal()) {
    return Integer.toString(Utils.maxIndex(dist));
  }
 else {
    return Double.toString(dist[0]);
  }
}

protected String sourceClass ( Attribute c , double [ ] dist ) { if ( c . isNominal ( ) ) { return Integer . toString ( Utils . maxIndex ( dist ) ) ; } else { return Double . toString ( dist [ 0 ] ) ; } }
returns the value as string out of the given distribution
