/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
parametersNew[workerParameterIndex] = parameterFiniteDifference[workerParameterIndex].add( parametersNew) ;
parametersNew[workerParameterIndex] = parametersNew[workerParameterIndex].add ( parameterFiniteDifference ) ;
if(parameterSteps != null) { parameterFiniteDifference = parameterSteps[workerParameterIndex]; } else { parameterFiniteDifference = parametersNew[workerParameterIndex].abs().add(1.0).mult(1E-8); } <extra_id_0> try { prepareAndSetValues(parametersNew, derivative); } catch (final Exception e) { Arrays.fill(derivative, new RandomVariableFromDoubleArray(Double.NaN)); } for (int valueIndex = 0; valueIndex < valueCurrent.length; valueIndex++) {