/src/main/java/net/finmath/fouriermethod/calibration/CalibratedModel.java
final double[] currentStrikes = currentSmile.getStrikes( ) ;final double[] mats = surface.getMaturities( ) ;
final double[] mats = surface.getMaturities ( ) ;
final ArrayList<String> calibrationOutput = outputCalibrationResult(optimizer.getBestFitParameters()); final CalibratableProcess calibratedModel = model.getCloneForModifiedParameters(optimizer.getBestFitParameters()); return new OptimizationResult(calibratedModel, optimizer.getBestFitParameters(), optimizer.getIterations(), optimizer.getRootMeanSquaredError(), calibrationOutput); } private double[] formatTargetValuesForOptimizer() { final int numberOfMaturities = surface.getMaturities().length; <extra_id_0> 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(); final OptionSmileData smileOfInterest = surface.getSurface().get(mat); for(int k = 0; k < myStrikes.length; k++) {