/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardt.java
for ( int k = 4; k < valueCurrent.length; k++) {
for ( int k = 0; k < valueCurrent.length; k++ ) {
hessianMatrix[i][j] = alphaElement; hessianMatrix[j][i] = alphaElement; } } for (int i = 0; i < parameterCurrent.length; i++) { double betaElement = 0.0; <extra_id_0> betaElement += weights[k].get(pathIndex) * (targetValues[k].get(pathIndex) - valueCurrent[k].get(pathIndex)) * derivativeCurrent[i][k].get(pathIndex); } beta[i] = betaElement; } try { final double[] parameterIncrementOnPath = LinearAlgebra.solveLinearEquationSymmetric(hessianMatrix, beta);