/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardt.java
for ( int valueIndex = j; valueIndex < value.length; valueIndex++) {
for ( int valueIndex = 0; valueIndex < value.length; valueIndex++ ) {
executor = null; } } } public RandomVariable getMeanSquaredError(final RandomVariable[] value) { RandomVariable error = new RandomVariableFromDoubleArray(0.0); <extra_id_0> final RandomVariable deviation = value[valueIndex].sub(targetValues[valueIndex]); error = error.addProduct(weights[valueIndex], deviation.squared()); } return error.div(value.length); } @Override