result.put("detailed", detailedData);
}
return result;
}
if (value.getForwardCurve() instanceof FunctionalDoublesCurve) {
FunctionalDoublesCurve functionalCurve = (FunctionalDoublesCurve) value.getForwardCurve();
List<Double[]> data = new ArrayList<Double[]>();
for (int i = 0; i < 30; i++) {
double x = i;
data.add(new Double[] {x, functionalCurve.getYValue(x)});
}
result.put("summary", data);
if (mode == ConversionMode.FULL) {
List<Double[]> detailedData = getData(functionalCurve);
result.put("detailed", detailedData);