Changeset 2136 for trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalMeanAbsolutePercentageOfRangeErrorEvaluator.cs
- Timestamp:
- 07/06/09 17:12:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalMeanAbsolutePercentageOfRangeErrorEvaluator.cs
r1902 r2136 44 44 45 45 public override double Evaluate(double[,] values) { 46 double quality = SimpleMeanAbsolutePercentageOfRangeErrorEvaluator.Calculate(values); 47 if (double.IsNaN(quality) || double.IsInfinity(quality)) 48 quality = double.MaxValue; 49 50 return quality; 46 try { 47 return SimpleMeanAbsolutePercentageOfRangeErrorEvaluator.Calculate(values); 48 } 49 catch (ArgumentException) { 50 return double.PositiveInfinity; 51 } 51 52 } 52 53 }
Note: See TracChangeset
for help on using the changeset viewer.