Changeset 10973
- Timestamp:
- 06/11/14 11:53:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/ChartLogic.cs
r10915 r10973 87 87 int columnIndex = preprocessingData.GetColumnIndex(variableName); 88 88 bool isDouble = preprocessingData.IsType<double>(columnIndex); 89 double distinctValueCount = preprocessingData.GetValues<double>(columnIndex).GroupBy(x => x).Count(); 90 bool distinctValuesOk = distinctValueCount <= MAX_DISTINCT_VALUES_FOR_CLASSIFCATION; 91 92 if (isDouble && distinctValuesOk) 93 doubleVariableNames.Add(variableName); 89 if (isDouble) { 90 double distinctValueCount = preprocessingData.GetValues<double>(columnIndex).GroupBy(x => x).Count(); 91 bool distinctValuesOk = distinctValueCount <= MAX_DISTINCT_VALUES_FOR_CLASSIFCATION; 92 if (distinctValuesOk) 93 doubleVariableNames.Add(variableName); 94 } 94 95 } 95 96 … … 133 134 if(row != null) 134 135 dataRows.Add(row); 135 }136 } 136 137 return dataRows; 137 138 } … … 163 164 ScatterPlot scatterPlot = new ScatterPlot(); 164 165 165 166 166 List<double> xValues = GetVariableValues(variableNameX).ToList(); 167 167 List<double> yValues = GetVariableValues(variableNameY).ToList();
Note: See TracChangeset
for help on using the changeset viewer.