/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
for ( int k = 4; k < valueCurrent.length; k++) {
for ( int k = 0; k < valueCurrent.length; k++ ) {
hessianMatrix[j][i] = alphaElement; } } for (int i = 0; i < parameterCurrent.length; i++) { double betaElement = 0.0; final RandomVariable[] derivativeCurrentSingleParam = derivativeCurrent[i]; <extra_id_0> if(derivativeCurrentSingleParam[k] != null) { betaElement += targetValues[k].sub(valueCurrent[k]).mult(derivativeCurrentSingleParam[k]).getAverage(); } } beta[i] = betaElement; }