Changeset 5564 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlineNormalizedMeanSquaredErrorEvaluator.cs
- Timestamp:
- 02/28/11 09:40:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlineNormalizedMeanSquaredErrorEvaluator.cs
r5559 r5564 67 67 OnlineNormalizedMeanSquaredErrorEvaluator normalizedMSEEvaluator = new OnlineNormalizedMeanSquaredErrorEvaluator(); 68 68 69 while (firstEnumerator.MoveNext() && secondEnumerator.MoveNext()) { 69 // always move forward both enumerators (do not use short-circuit evaluation!) 70 while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) { 70 71 double estimated = secondEnumerator.Current; 71 72 double original = firstEnumerator.Current; … … 73 74 } 74 75 76 // check if both enumerators are at the end to make sure both enumerations have the same length 75 77 if (secondEnumerator.MoveNext() || firstEnumerator.MoveNext()) { 76 78 throw new ArgumentException("Number of elements in first and second enumeration doesn't match.");
Note: See TracChangeset
for help on using the changeset viewer.