Changeset 15210 for trunk/sources/HeuristicLab.DataPreprocessing
- Timestamp:
- 07/12/17 15:45:31 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content/HistogramContent.cs
r15110 r15210 54 54 } 55 55 56 public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, DataTableVisualProperties.DataTableHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.A ppearance) {56 public static DataTable CreateHistogram(IFilteredPreprocessingData preprocessingData, string variableName, string groupingVariableName, DataTableVisualProperties.DataTableHistogramAggregation aggregation, LegendOrder legendOrder = LegendOrder.Alphabetically) { 57 57 var dataTable = new DataTable { 58 58 VisualProperties = { Title = variableName, HistogramAggregation = aggregation }, -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content/PreprocessingChartContent.cs
r15110 r15210 34 34 public class PreprocessingChartContent : Item, IViewShortcut { 35 35 public enum LegendOrder { 36 A ppearance,37 A lphabetically36 Alphabetically, 37 Appearance 38 38 } 39 39 … … 91 91 } 92 92 93 private const int MAX_DISTINCT_VALUES_FOR_GROUPING = 20; 94 public static IEnumerable<string> GetVariableNamesForGrouping(IPreprocessingData preprocessingData) { 93 public static IEnumerable<string> GetVariableNamesForGrouping(IPreprocessingData preprocessingData, int maxDistinctValues = 20) { 95 94 var variableNames = new List<string>(); 96 95 … … 104 103 distinctValues = preprocessingData.GetValues<DateTime>(i).GroupBy(x => x).Count(); 105 104 106 if (distinctValues <= MAX_DISTINCT_VALUES_FOR_GROUPING)105 if (distinctValues <= maxDistinctValues) 107 106 variableNames.Add(preprocessingData.GetVariableName(i)); 108 107 } -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs
r15110 r15210 40 40 } 41 41 42 public static ScatterPlot CreateScatterPlot(IFilteredPreprocessingData preprocessingData, string variableNameX, string variableNameY, string variableNameGroup = "-", LegendOrder legendOrder = LegendOrder.A ppearance) {42 public static ScatterPlot CreateScatterPlot(IFilteredPreprocessingData preprocessingData, string variableNameX, string variableNameY, string variableNameGroup = "-", LegendOrder legendOrder = LegendOrder.Alphabetically) { 43 43 ScatterPlot scatterPlot = new ScatterPlot(); 44 44
Note: See TracChangeset
for help on using the changeset viewer.