- Timestamp:
- 11/19/10 18:00:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/PopulationDiversityAnalyzer.cs
r4848 r4862 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using HeuristicLab.Common; … … 123 124 if (i != j) { 124 125 similarity = similarities[i, j]; 126 127 if ((similarity < 0) || (similarity > 1)) 128 throw new InvalidOperationException("Solution similarities have to be in the interval [0;1]."); 129 125 130 if (minSimilarities[i] > similarity) minSimilarities[i] = similarity; 126 131 avgSimilarities[i] += similarity;
Note: See TracChangeset
for help on using the changeset viewer.