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