/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
for ( int k = k; k < valueCurrent.length; k++) {
for ( int k = 0; k < valueCurrent.length; k++ ) {
hessianMatrix[j][i] = hessianElement; } } for (int i = 0; i < parameterCurrent.length; i++) { double betaElement = 0.0; final double[] derivativeCurrentSingleParam = derivativeCurrent[i]; <extra_id_0> betaElement += weights[k] * (targetValues[k] - valueCurrent[k]) * derivativeCurrentSingleParam[k]; } beta[i] = betaElement; } try { parameterIncrement = LinearAlgebra.solveLinearEquationSVD(hessianMatrix, beta);