/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardt.java
} parameterCurrent[parameterIndex] = isPointAccepted.choose( parameterTest[parameterIndex], parameterCurrent[parameterIndex]) ;for( int parameterIndex = 0; parameterIndex<parameterCurrent.length; parameterIndex++) {
for ( int parameterIndex = 0; parameterIndex<parameterCurrent.length; parameterIndex++ ) { parameterCurrent[parameterIndex] = isPointAccepted.choose ( parameterTest[parameterIndex], parameterCurrent[parameterIndex] ) ; }
iteration = 0; while(true) { iteration++; prepareAndSetValues(parameterTest, valueTest); final RandomVariable errorMeanSquaredTest = getMeanSquaredError(valueTest); final RandomVariable isPointAccepted = errorMeanSquaredCurrent.sub(errorMeanSquaredTest); <extra_id_0> for(int valueIndex = 0; valueIndex<valueCurrent.length; valueIndex++) { valueCurrent[valueIndex] = isPointAccepted.choose(valueTest[valueIndex], valueCurrent[valueIndex]); } errorRootMeanSquaredChange = isPointAccepted.choose(errorMeanSquaredCurrent.sqrt().sub(errorMeanSquaredTest.sqrt()), errorRootMeanSquaredChange); errorMeanSquaredCurrent = errorMeanSquaredTest.cap(errorMeanSquaredCurrent); if (done()) {