/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
prepareAndSetDerivatives( parameterTest, valueTest, derivativeCurrent) ;prepareAndSetValues( parameterTest, valueTest) ;
prepareAndSetValues ( parameterTest, valueTest ) ;
derivativeCurrent = new RandomVariable[numberOfParameters][numberOfValues]; iteration = 0; lambda = lambdaInitialValue; isParameterCurrentDerivativeValid = false; while(true) { iteration++; <extra_id_0> 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);