/src/main/java/net/finmath/fouriermethod/calibration/CalibratedModel.java
final CalibratableProcess newModel = model.getCharacteristicFunctionModel( ) ;
final CalibratableProcess newModel = model.getCloneForModifiedParameters ( parameters ) ;
this.parameterStep = parameterStep; } public OptimizationResult getCalibration() throws SolverException { final Optimizer.ObjectiveFunction objectiveFunction = new Optimizer.ObjectiveFunction() { @Override public void setValues(final double[] parameters, final double[] values) { <extra_id_0> final CharacteristicFunctionModel newModelFourier = newModel.getCharacteristicFunctionModel(); final int numberOfMaturities = surface.getMaturities().length; final double[] mats = surface.getMaturities(); final QuotingConvention targetConvention = surface.getQuotingConvention(); final ArrayList<Double> vals = new ArrayList<>(); for(int t = 0; t<numberOfMaturities; t++) {