Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4849


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

Location:
trunk/sources
Files:
3 edited

Legend:

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

    r4778 r4849  
    282282            rowSeries.Points.Clear();
    283283            FillSeriesWithRowValues(rowSeries, row);
    284             //foreach (IndexedItem<double> item in e.Items) {
    285             //  var value = item.Value;
    286             //  DataPoint point = new DataPoint();
    287             //  point.XValue = row.VisualProperties.StartIndexZero ? item.Index : item.Index + 1;
    288             //  if (IsInvalidValue(item.Value))
    289             //    point.IsEmpty = true;
    290             //  else
    291             //    point.YValues = new double[] { value };
    292             //  rowSeries.Points.Add(point);
    293             //}
    294284            UpdateYCursorInterval();
    295285          }
     
    308298            rowSeries.Points.Clear();
    309299            FillSeriesWithRowValues(rowSeries, row);
    310             //List<DataPoint> points = new List<DataPoint>();
    311             //foreach (IndexedItem<double> item in e.Items)
    312             //  points.Add(rowSeries.Points[item.Index]);
    313             //foreach (DataPoint point in points)
    314             //  rowSeries.Points.Remove(point);
    315300            UpdateYCursorInterval();
    316301          }
  • 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
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/TSPAlleleFrequencyAnalyzer.cs

    r4722 r4849  
    4545    public TSPAlleleFrequencyAnalyzer()
    4646      : base() {
    47       Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities."));
     47      Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The x- and y-coordinates of the cities."));
    4848    }
    4949
Note: See TracChangeset for help on using the changeset viewer.