- Timestamp:
- 12/22/16 12:42:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs
r14511 r14521 72 72 } else { 73 73 var groupValues = PreprocessingData.GetValues<double>(PreprocessingData.GetColumnIndex(variableNameGroup)); 74 var data = points.Zip(groupValues, (p, g) => new { p, g }); 75 foreach (var groupValue in groupValues.Distinct()) { 74 var data = points.Zip(groupValues, (p, g) => new { p, g }) 75 .Where(x => !double.IsNaN(x.p.X) && !double.IsNaN(x.p.Y) && !double.IsNaN(x.g) && !double.IsInfinity(x.p.X) && !double.IsInfinity(x.p.Y) && !double.IsInfinity(x.g)) 76 .ToList(); 77 78 foreach (var groupValue in groupValues.Distinct().OrderBy(g => g)) { 76 79 var values = data.Where(x => x.g == groupValue).Select(v => v.p); 77 80 var row = new ScatterPlotDataRow(string.Format("{0} ({1})", variableNameGroup, groupValue), "", values) { 81 Name = groupValue.ToString("R"), 78 82 VisualProperties = { PointSize = 6 } 79 83 };
Note: See TracChangeset
for help on using the changeset viewer.