Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/10 13:43:32 (14 years ago)
Author:
gkronber
Message:

Reviewed classes AlleleFrequencyAnalyzer, TSPAlleleFrequencyAnalyzer, Allele, AlleleFrequencyCollection, AlleleFrequencyCollectionHistory, AlleleFrequencyView, AlleleFrequencyCollectionView, AlleleFrequencyCollectionHistoryView and MovieView and made some minor changes. #1234

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalyzer.cs

    r4778 r4849  
    107107        // calculate index of current best solution
    108108        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        }
    111120
    112121        // calculate allels of current best and (if available) best known solution
Note: See TracChangeset for help on using the changeset viewer.