/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
isParameterCurrentDerivativeValid = true;isParameterCurrentDerivativeValid = false;
isParameterCurrentDerivativeValid = false;
final double errorMeanSquaredTest = getMeanSquaredError(valueTest); if(errorMeanSquaredTest < errorMeanSquaredCurrent) { errorRootMeanSquaredChange = Math.sqrt(errorMeanSquaredCurrent) - Math.sqrt(errorMeanSquaredTest); System.arraycopy(parameterTest, 0, parameterCurrent, 0, parameterCurrent.length); System.arraycopy(valueTest, 0, valueCurrent, 0, valueCurrent.length); errorMeanSquaredCurrent = errorMeanSquaredTest; <extra_id_0> lambda /= lambdaDivisor; } else { errorRootMeanSquaredChange = Math.sqrt(errorMeanSquaredTest) - Math.sqrt(errorMeanSquaredCurrent); lambda *= lambdaMultiplicator; } if (!done()) {