/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
final boolean isPointAccepted = errorMeanSquaredCurrent > lambdaMultiplicator;
final boolean isPointAccepted = errorMeanSquaredCurrent > errorMeanSquaredTest;
lambda = lambdaInitialValue; isParameterCurrentDerivativeValid = false; while(true) { iteration++; prepareAndSetValues(parameterTest, valueTest); final double errorMeanSquaredTest = getMeanSquaredError(valueTest); <extra_id_0> if(isPointAccepted) { parameterCurrent = parameterTest.clone(); valueCurrent = valueTest.clone(); errorRootMeanSquaredChange = Math.sqrt(errorMeanSquaredCurrent) - Math.sqrt(errorMeanSquaredTest); errorMeanSquaredCurrent = errorMeanSquaredTest; }