private void generateOutcomesText(Writer writer,Set<SingleOutcome> singleOutcomes,List<String> labelsList) throws Exception {
  writer.append(generateHeader(labelsList));
  for (  SingleOutcome outcome : singleOutcomes) {
    writer.append("\n");
    writer.append(outcome.getId());
    writer.append("=");
    double[] predictions=outcome.getPrediction();
    for (int i=0; i < predictions.length; i++) {
      double value=predictions[i];
      String formattedStringValue=getFormattedStringValue(value);
      writer.append(formattedStringValue);
      if (i < predictions.length - 1) {
        writer.append(WEIGHTING_SEPARATOR_CHAR);
      }
    }
    writer.append(SEPARATOR_CHAR);
    double[] goldstandards=outcome.getGoldstandard();
    for (int i=0; i < goldstandards.length; i++) {
      double value=goldstandards[i];
      String formattedStringValue=getFormattedStringValue(value);
      writer.append(formattedStringValue);
      if (i < predictions.length - 1) {
        writer.append(WEIGHTING_SEPARATOR_CHAR);
      }
    }
    writer.append(SEPARATOR_CHAR);
    writer.append("" + outcome.getBipartitionThreshold());
  }
}

private void generateOutcomesText ( Writer writer , Set < SingleOutcome > singleOutcomes , List < String > labelsList ) throws Exception { writer . append ( generateHeader ( labelsList ) ) ; for ( SingleOutcome outcome : singleOutcomes ) { writer . append ( "\n" ) ; writer . append ( outcome . getId ( ) ) ; writer . append ( "=" ) ; double [ ] predictions = outcome . getPrediction ( ) ; for ( int i = 0 ; i < predictions . length ; i ++ ) { double value = predictions [ i ] ; String formattedStringValue = getFormattedStringValue ( value ) ; writer . append ( formattedStringValue ) ; if ( i < predictions . length - 1 ) { writer . append ( WEIGHTING_SEPARATOR_CHAR ) ; } } writer . append ( SEPARATOR_CHAR ) ; double [ ] goldstandards = outcome . getGoldstandard ( ) ; for ( int i = 0 ; i < goldstandards . length ; i ++ ) { double value = goldstandards [ i ] ; String formattedStringValue = getFormattedStringValue ( value ) ; writer . append ( formattedStringValue ) ; if ( i < predictions . length - 1 ) { writer . append ( WEIGHTING_SEPARATOR_CHAR ) ; } } writer . append ( SEPARATOR_CHAR ) ; writer . append ( "" + outcome . getBipartitionThreshold ( ) ) ; } }
generate outcomes based human readable text
