Changeset 14508
- Timestamp:
- 12/20/16 11:06:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableControl.cs
r14458 r14508 541 541 if (!row.Values.Any()) return; 542 542 543 var validValues = histogramRows.SelectMany(r => r.Values).Where(x => !IsInvalidValue(x)).ToList(); 544 if (!validValues.Any()) return; 545 543 546 int bins = histogramRows.Max(r => r.VisualProperties.Bins); 544 decimal minValue = (decimal) histogramRows.Min(r => r.Values.Min());545 decimal maxValue = (decimal) histogramRows.Max(r => r.Values.Max());547 decimal minValue = (decimal)validValues.Min(); 548 decimal maxValue = (decimal)validValues.Max(); 546 549 decimal intervalWidth = (maxValue - minValue) / bins; 547 550 if (intervalWidth < 0) return;
Note: See TracChangeset
for help on using the changeset viewer.