Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10371


Ignore:
Timestamp:
01/22/14 14:43:39 (11 years ago)
Author:
rstoll
Message:

Forgot to add GetColumnTypeAsString

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  
    3030        return preprocessingData.VariableNames;
    3131      }
    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";
    4332    }
    4433
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticsLogic.cs

    r10369 r10371  
    121121      return preprocessingData.IsType<T>(columnIndex);
    122122    }
     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
    123135  }
    124136}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/StatisticsView.cs

    r10370 r10371  
    6464        } else {
    6565          list = new List<string>();
     66          for (int j = 0; j < COLUMNS; ++j) {
     67            list.Add("");
     68          }
    6669        }
    6770        columnsRowsMatrix.Add(list);
     
    7780      var logic = Content.StatisticsLogic;
    7881      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()
    8692      };
    8793    }
Note: See TracChangeset for help on using the changeset viewer.