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