Changeset 5945 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineAccuracyCalculator.cs
- Timestamp:
- 04/04/11 18:09:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineAccuracyCalculator.cs
r5943 r5945 78 78 double original = firstEnumerator.Current; 79 79 accuracyCalculator.Add(original, estimated); 80 if (accuracyCalculator.ErrorState != OnlineCalculatorError.None) break; 80 81 } 81 82 82 83 // check if both enumerators are at the end to make sure both enumerations have the same length 83 if (secondEnumerator.MoveNext() || firstEnumerator.MoveNext()) { 84 if (accuracyCalculator.ErrorState == OnlineCalculatorError.None && 85 (secondEnumerator.MoveNext() || firstEnumerator.MoveNext())) { 84 86 throw new ArgumentException("Number of elements in first and second enumeration doesn't match."); 85 87 } else {
Note: See TracChangeset
for help on using the changeset viewer.