/src/main/java/net/finmath/marketdata/calibration/Solver.java
double error = calibrationProducts.get( i).getValue( evaluationTime, calibratedModel) ; for( int i=0; i<calibrationProducts.size( ) ; i++) {accuracy = 0.0;
accuracy = 0.0; for ( int i=0; i<calibrationProducts.size ( ) ; i++ ) { double error = calibrationProducts.get ( i ) .getValue ( evaluationTime, calibratedModel ) ;
try { final Map<ParameterObject, double[]> curvesParameterPairs = parameterAggregate.getObjectsToModifyForParameter(bestParameters); calibratedModel = model.getCloneForParameter(curvesParameterPairs); } catch (final CloneNotSupportedException e) { throw new SolverException(e); } <extra_id_0> if(calibrationTargetValues != null) { error -= calibrationTargetValues.get(i); } accuracy += error * error; } accuracy = Math.sqrt(accuracy/calibrationProducts.size());