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