Changeset 5564 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlinePearsonsRSquaredEvaluator.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/OnlinePearsonsRSquaredEvaluator.cs
r5559 r5564 75 75 OnlinePearsonsRSquaredEvaluator rSquaredEvaluator = new OnlinePearsonsRSquaredEvaluator(); 76 76 77 while (firstEnumerator.MoveNext() && secondEnumerator.MoveNext()) { 77 // always move forward both enumerators (do not use short-circuit evaluation!) 78 while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) { 78 79 double estimated = secondEnumerator.Current; 79 80 double original = firstEnumerator.Current; … … 81 82 } 82 83 84 // check if both enumerators are at the end to make sure both enumerations have the same length 83 85 if (secondEnumerator.MoveNext() || firstEnumerator.MoveNext()) { 84 86 throw new ArgumentException("Number of elements in first and second enumeration doesn't match.");
Note: See TracChangeset
for help on using the changeset viewer.