- Timestamp:
- 01/22/14 14:43:39 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/DataGridLogic.cs
r10367 r10371 30 30 return preprocessingData.VariableNames; 31 31 } 32 }33 34 public string GetColumnTypeAsString(int columnIndex) {35 if (preprocessingData.IsType<double>(columnIndex)) {36 return "double";37 } else if (preprocessingData.IsType<string>(columnIndex)) {38 return "string";39 } else if (preprocessingData.IsType<DateTime>(columnIndex)) {40 return "DateTime";41 }42 return "Unknown Type";43 32 } 44 33 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticsLogic.cs
r10369 r10371 121 121 return preprocessingData.IsType<T>(columnIndex); 122 122 } 123 124 public string GetColumnTypeAsString(int columnIndex) { 125 if (preprocessingData.IsType<double>(columnIndex)) { 126 return "double"; 127 } else if (preprocessingData.IsType<string>(columnIndex)) { 128 return "string"; 129 } else if (preprocessingData.IsType<DateTime>(columnIndex)) { 130 return "DateTime"; 131 } 132 return "Unknown Type"; 133 } 134 123 135 } 124 136 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/StatisticsView.cs
r10370 r10371 64 64 } else { 65 65 list = new List<string>(); 66 for (int j = 0; j < COLUMNS; ++j) { 67 list.Add(""); 68 } 66 69 } 67 70 columnsRowsMatrix.Add(list); … … 77 80 var logic = Content.StatisticsLogic; 78 81 return new List<string> { 79 //logic.GetColumnTypeAsString(columnIndex), 80 //logic.GetMissingValueCount(columnIndex).tostring(), 81 //logic.GetMin<double>(columnIndex), 82 //logic.GetMax<double>(columnIndex), 83 //logic.getmedian(columnIndex), 84 //logic.getaverage(columnIndex), 85 //logic.-(columnIndex), 82 logic.GetColumnTypeAsString(columnIndex), 83 logic.GetMissingValueCount(columnIndex).ToString(), 84 logic.GetMin<double>(columnIndex).ToString(), 85 logic.GetMax<double>(columnIndex).ToString(), 86 logic.GetMedian(columnIndex).ToString(), 87 logic.GetAverage(columnIndex).ToString(), 88 logic.GetStandardDeviation(columnIndex).ToString(), 89 logic.GetVariance(columnIndex).ToString(), 90 logic.GetMostCommonValue<double>(columnIndex).ToString(), 91 logic.GetDifferentValuesCount<double>(columnIndex).ToString() 86 92 }; 87 93 }
Note: See TracChangeset
for help on using the changeset viewer.