Changeset 7994 for branches/HeuristicLab.DataImporter
- Timestamp:
- 06/12/12 16:30:34 (13 years ago)
- Location:
- branches/HeuristicLab.DataImporter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteColumnsWithMissingValuesThresholdCommand.cs
r7968 r7994 52 52 53 53 oldColumn = ColumnGroup.GetColumn(oldColumnIndex); 54 if ((double)oldColumn.N ullValuesCount / (double)oldColumn.TotalValuesCount < Threshold) {54 if ((double)oldColumn.NonNullValuesCount / (double)oldColumn.TotalValuesCount < Threshold) { 55 55 ColumnGroup.RemoveColumn(oldColumn); 56 56 } else { -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesThresholdCommand.cs
r7968 r7994 57 57 for (int rowInd = 0; rowInd < ColumnGroup.RowCount; rowInd++) { 58 58 row = ColumnGroup.GetRow(rowInd); 59 double missingValues = ColumnGroup.GetRow(rowInd).Where(x => x != null).Count();60 if ( missingValues / columnsCount < Threshold) {59 double setValues = ColumnGroup.GetRow(rowInd).Where(x => x != null).Count(); 60 if (setValues / columnsCount < Threshold) { 61 61 deletedRows[rowInd] = row; 62 62 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/ColumnGroupView.cs
r7993 r7994 392 392 } 393 393 lblNullValues.Text = nullValuesCount.ToString(); 394 double nullPercentage = ( double)nullValuesCount / (double)totalValuesCount;394 double nullPercentage = (100.0 / (double)(totalValuesCount + nullValuesCount)) * (double)nullValuesCount; 395 395 lblNullPercentage.Text = Double.IsNaN(nullPercentage) ? "" : nullPercentage.ToString(); 396 396 lblValues.Text = totalValuesCount.ToString();
Note: See TracChangeset
for help on using the changeset viewer.