/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
} }derivative[valueIndex] = 0.0;
derivative[valueIndex] = 0.0; } }
Arrays.fill(derivative, Double.NaN); } for (int valueIndex = 0; valueIndex < valueCurrent.length; valueIndex++) { derivative[valueIndex] -= valueCurrent[valueIndex]; derivative[valueIndex] /= parameterFiniteDifference; if(Double.isNaN(derivative[valueIndex])) { <extra_id_0> return derivative; } }; if(executor != null) { final Future<double[]> valueFuture = executor.submit(worker); valueFutures.add(parameterIndex, valueFuture);