Changeset 4849
- Timestamp:
- 11/19/10 13:43:32 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r4778 r4849 282 282 rowSeries.Points.Clear(); 283 283 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 // else291 // point.YValues = new double[] { value };292 // rowSeries.Points.Add(point);293 //}294 284 UpdateYCursorInterval(); 295 285 } … … 308 298 rowSeries.Points.Clear(); 309 299 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);315 300 UpdateYCursorInterval(); 316 301 } -
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 -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/TSPAlleleFrequencyAnalyzer.cs
r4722 r4849 45 45 public TSPAlleleFrequencyAnalyzer() 46 46 : 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.")); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.