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