- Timestamp:
- 04/06/11 10:45:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineNormalizedMeanSquaredErrorCalculator.cs
r5945 r5962 68 68 OnlineNormalizedMeanSquaredErrorCalculator normalizedMSECalculator = new OnlineNormalizedMeanSquaredErrorCalculator(); 69 69 70 //needed because otherwise the normalizedMSECalculator is in ErrorState.InsufficientValuesAdded 71 if (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) { 72 double estimated = secondEnumerator.Current; 73 double original = firstEnumerator.Current; 74 normalizedMSECalculator.Add(original, estimated); 75 } 76 70 77 // always move forward both enumerators (do not use short-circuit evaluation!) 71 78 while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) {
Note: See TracChangeset
for help on using the changeset viewer.