- Timestamp:
- 06/13/12 09:01:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/ProportionalSelector.cs
r7259 r7995 69 69 // prepare qualities for proportional selection 70 70 var qualities = QualityParameter.ActualValue.Select(x => x.Value); 71 //check if list with indexes is as long as the original scope list 72 //otherwise invalid quality values were filtered 73 if (!qualities.All(IsValidQuality)) { 74 throw new ArgumentException("The scopes contain invalid quality values (either infinity or double.NaN) on which the selector cannot operate."); 75 } 76 71 77 double minQuality = qualities.Min(); 72 78 double maxQuality = qualities.Max();
Note: See TracChangeset
for help on using the changeset viewer.