Changeset 5945 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanSquaredErrorCalculator.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/OnlineMeanSquaredErrorCalculator.cs
r5943 r5945 75 75 double original = firstEnumerator.Current; 76 76 mseCalculator.Add(original, estimated); 77 if (mseCalculator.ErrorState != OnlineCalculatorError.None) break; 77 78 } 78 79 79 80 // check if both enumerators are at the end to make sure both enumerations have the same length 80 if (secondEnumerator.MoveNext() || firstEnumerator.MoveNext()) { 81 if (mseCalculator.ErrorState == OnlineCalculatorError.None && 82 (secondEnumerator.MoveNext() || firstEnumerator.MoveNext())) { 81 83 throw new ArgumentException("Number of elements in first and second enumeration doesn't match."); 82 84 } else {
Note: See TracChangeset
for help on using the changeset viewer.