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