Correlation globalResults = correlateQualityPredictions(listArtifacts(), collabReview.getReputationMetricManager());
globalResults.sortByX();
resultString += String.format(Locale.US, "One-shot Pearson r=%.2f, one-shot Spearman rho=%.2f\n", globalResults.getPearsonCorrelation(), globalResults.getSpearmanCorrelation());
String assessedValues = "";
String predictedValues = "";
for (Correlation.RowData data : globalResults.listRowData()) {
assessedValues += String.format(Locale.US, "%6.2f,", data.getX());
predictedValues += String.format(Locale.US, "%6.2f,", data.getY());
}
resultString += "Assessed values: " + assessedValues + "\n";
resultString += "Predicted values: " + predictedValues + "\n";