public static Set<ComputedValue> getTimeLabelledSensitivitiesForCurve(final List<DoublesPair> resultList, final ValueSpecification resultSpec) {
final int n = resultList.size();
final Double[] keys = new Double[n];
final double[] values = new double[n];
final Object[] labels = new Object[n];
LabelledMatrix1D<Double, Double> labelledMatrix = new DoubleLabelledMatrix1D(ArrayUtils.EMPTY_DOUBLE_OBJECT_ARRAY, ArrayUtils.EMPTY_OBJECT_ARRAY, ArrayUtils.EMPTY_DOUBLE_ARRAY);
for (int i = 0; i < n; i++) {
final DoublesPair pair = resultList.get(i);
keys[i] = pair.first;
values[i] = pair.second;
labels[i] = s_formatter.format(pair.first);
labelledMatrix = labelledMatrix.add(pair.first, s_formatter.format(pair.first), pair.second, 1e-16);
}
return Collections.singleton(new ComputedValue(resultSpec, labelledMatrix));
}