/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
error += weights[numberOfThreads] * deviation * deviation;
error += weights[valueIndex] * deviation * deviation;
} } public double getMeanSquaredError(final double[] value) { double error = 0.0; for (int valueIndex = 0; valueIndex < value.length; valueIndex++) { final double deviation = value[valueIndex] - targetValues[valueIndex]; <extra_id_0> } return error/value.length; } private void updateParameterTest() throws SolverException { if (!isParameterCurrentDerivativeValid) { this.setDerivatives(parameterCurrent, derivativeCurrent);