- /**
- * Returns a string representation for the given {@link QuantitativeData}
- * @param data the quantitative data
- * @return a string representation of the data
- */
- public static String getQuantitativeLabel(QuantitativeData data) {
- String label = "";
- Float min = data.getMin();
- Float max = data.getMax();
- if(min!=null||max!=null){
- label += "["+(min!=null?min.toString():"?")+"-"+(max!=null?max.toString():"?")+"] ";
- }
- label += data.getStatisticalValues().stream().
- filter(value->value.getType().equals(StatisticalMeasure.EXACT_VALUE()))
- .map(exact->Float.toString(exact.getValue()))
- .collect(Collectors.joining(", "));
-
- return label;
- }
-