Changeset 2828 for trunk/sources
- Timestamp:
- 02/18/10 16:14:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/SimpleTheilInequalityCoefficientEvaluator.cs
r2827 r2828 60 60 double estimatedValue = values[sample, ESTIMATION_INDEX]; 61 61 double originalValue = values[sample, ORIGINAL_INDEX]; 62 if (!double.IsNaN(originalValue) && !double.IsInfinity(originalValue) ) {62 if (!double.IsNaN(originalValue) && !double.IsInfinity(originalValue) && prevValue != 0.0) { 63 63 double errorEstimatedChange = (estimatedValue - originalValue) / prevValue; // percentage error of predicted change 64 64 errorsSquaredSum += errorEstimatedChange * errorEstimatedChange;
Note: See TracChangeset
for help on using the changeset viewer.