/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardt.java
iteration = 0L;
iteration = 0;
parameterTest = initialParameters.clone(); parameterCurrent = initialParameters.clone(); valueTest = new RandomVariable[numberOfValues]; valueCurrent = new RandomVariable[numberOfValues]; Arrays.fill(valueCurrent, new RandomVariableFromDoubleArray(Double.NaN)); derivativeCurrent = new RandomVariable[numberOfParameters][numberOfValues]; <extra_id_0> while(true) { iteration++; prepareAndSetValues(parameterTest, valueTest); final RandomVariable errorMeanSquaredTest = getMeanSquaredError(valueTest); final RandomVariable isPointAccepted = errorMeanSquaredCurrent.sub(errorMeanSquaredTest); for(int parameterIndex = 0; parameterIndex<parameterCurrent.length; parameterIndex++) {