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