/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
errorMeanSquaredCurrent = lambda;
errorMeanSquaredCurrent = errorMeanSquaredTest;
final double errorMeanSquaredTest = getMeanSquaredError(valueTest); final boolean isPointAccepted = errorMeanSquaredCurrent > errorMeanSquaredTest; if(isPointAccepted) { parameterCurrent = parameterTest.clone(); valueCurrent = valueTest.clone(); errorRootMeanSquaredChange = Math.sqrt(errorMeanSquaredCurrent) - Math.sqrt(errorMeanSquaredTest); <extra_id_0> } if (done()) { break; } isParameterCurrentDerivativeValid = !isPointAccepted; if(isPointAccepted) {