Changeset 4849 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 11/19/10 13:43:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalyzer.cs
r4778 r4849 107 107 // calculate index of current best solution 108 108 int bestIndex = -1; 109 if (!max) bestIndex = qualities.Select((x, index) => new { index, x.Value }).OrderBy(x => x.Value).First().index; 110 else bestIndex = qualities.Select((x, index) => new { index, x.Value }).OrderByDescending(x => x.Value).First().index; 109 if (!max) { 110 bestIndex = qualities 111 .Select((x, index) => new { index, x.Value }) 112 .OrderBy(x => x.Value) 113 .First().index; 114 } else { 115 bestIndex = qualities 116 .Select((x, index) => new { index, x.Value }) 117 .OrderByDescending(x => x.Value) 118 .First().index; 119 } 111 120 112 121 // calculate allels of current best and (if available) best known solution
Note: See TracChangeset
for help on using the changeset viewer.