Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/12/16 11:17:07 (7 years ago)
Author:
pfleck
Message:

#2709

  • Improved legend description for grouped histogram and scatterplots.
  • Fixed initial size of points for scatterplots.
  • Added correlation calculation for scatterplots (not used yet).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs

    r14459 r14474  
    6262      } else {
    6363        dt.VisualProperties.Title = variableName;
    64         //var valuesPerClass = row.Values.Zip(Classification, (value, @class) => new { value, @class })
    65         //                        .GroupBy(x => x.@class)
    66         //                        .ToDictionary(x => x.Key, x => x.Select(v => v.value));
    67         var valuesPerClass = row.Values.Select((i, index) => new { i, j = Classification.ToList()[index] })
    68                                        .GroupBy((x) => x.j)
    69                                        .ToDictionary(x => x.Key, x => x.Select(v => v.i)
    70                                        .ToList());
     64        var valuesPerClass = row.Values.Zip(Classification, (value, @class) => new { value, @class })
     65                                .GroupBy(x => x.@class)
     66                                .ToDictionary(x => x.Key, x => x.Select(v => v.value));
    7167        foreach (var entry in valuesPerClass) {
    72           var classRow = new DataRow(entry.Key.ToString());
     68          var classRow = new DataRow(string.Format("{0} ({1})", classifierComboBox.SelectedItem, entry.Key));
    7369          classRow.VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Histogram;
    7470          classRow.Values.AddRange(entry.Value);
Note: See TracChangeset for help on using the changeset viewer.