Ignore:
Timestamp:
06/24/16 14:00:28 (5 years ago)
Author:
mkommend
Message:

#2616: Added default value for min, max and most common value operations for data preprocessing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.cs

    r12889 r13935  
    146146        logic.GetColumnTypeAsString(columnIndex),
    147147        logic.GetMissingValueCount(columnIndex).ToString(),
    148         logic.GetMin<double>(columnIndex).ToString(),
    149         logic.GetMax<double>(columnIndex).ToString(),
     148        logic.GetMin<double>(columnIndex,double.NaN).ToString(),
     149        logic.GetMax<double>(columnIndex,double.NaN).ToString(),
    150150        logic.GetMedian(columnIndex).ToString(),
    151151        logic.GetAverage(columnIndex).ToString(),
     
    154154        logic.GetOneQuarterPercentile(columnIndex).ToString(),
    155155        logic.GetThreeQuarterPercentile(columnIndex).ToString(),
    156         logic.GetMostCommonValue<double>(columnIndex).ToString(),
     156        logic.GetMostCommonValue<double>(columnIndex,double.NaN).ToString(),
    157157        logic.GetDifferentValuesCount<double>(columnIndex).ToString()
    158158      };
     
    172172        "", //quarter percentile
    173173        "", //three quarter percentile
    174         logic.GetMostCommonValue<string>(columnIndex) ?? "",
     174        logic.GetMostCommonValue<string>(columnIndex,string.Empty) ?? "",
    175175        logic.GetDifferentValuesCount<string>(columnIndex).ToString()
    176176      };
     
    182182        logic.GetColumnTypeAsString(columnIndex),
    183183        logic.GetMissingValueCount(columnIndex).ToString(),
    184         logic.GetMin<DateTime>(columnIndex).ToString(),
    185         logic.GetMax<DateTime>(columnIndex).ToString(),
     184        logic.GetMin<DateTime>(columnIndex,DateTime.MinValue).ToString(),
     185        logic.GetMax<DateTime>(columnIndex,DateTime.MinValue).ToString(),
    186186        logic.GetMedianDateTime(columnIndex).ToString(),
    187187        logic.GetAverageDateTime(columnIndex).ToString(),
     
    190190        logic.GetOneQuarterPercentile(columnIndex).ToString(),
    191191        logic.GetThreeQuarterPercentile(columnIndex).ToString(),
    192         logic.GetMostCommonValue<DateTime>(columnIndex).ToString(),
     192        logic.GetMostCommonValue<DateTime>(columnIndex,DateTime.MinValue).ToString(),
    193193        logic.GetDifferentValuesCount<DateTime>(columnIndex).ToString()
    194194      };
Note: See TracChangeset for help on using the changeset viewer.