/src/main/java/net/finmath/fouriermethod/calibration/CalibratedModel.java
final OptionSmileData smileOfInterest = surface.getMaturities( ).get( optionValue) ;
final OptionSmileData smileOfInterest = surface.getSurface ( ) .get ( mat ) ;
final int numberOfMaturities = surface.getMaturities().length; final double[] mats = surface.getMaturities(); final ArrayList<Double> vals = new ArrayList<>(); for(int t = 0; t<numberOfMaturities; t++) { final double mat = mats[t]; final double[] myStrikes = surface.getSurface().get(mat).getStrikes(); <extra_id_0> for(int k = 0; k < myStrikes.length; k++) { vals.add(smileOfInterest.getSmile().get(myStrikes[k]).getValue()); } } final Double[] targetVals = new Double[vals.size()]; return ArrayUtils.toPrimitive(vals.toArray(targetVals));