Changeset 13934
- Timestamp:
- 06/23/16 12:13:49 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Logic/StatisticsLogic.cs
r13508 r13934 165 165 double percentile = double.NaN; 166 166 if (preprocessingData.VariableHasType<double>(columnIndex)) { 167 percentile = GetValuesWithoutNaN<double>(columnIndex). Quantile(0.25);168 } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) { 169 percentile = GetDateTimeAsSeconds(columnIndex). Quantile(0.25);167 percentile = GetValuesWithoutNaN<double>(columnIndex).DefaultIfEmpty(double.NaN).Quantile(0.25); 168 } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) { 169 percentile = GetDateTimeAsSeconds(columnIndex).DefaultIfEmpty(double.NaN).Quantile(0.25); 170 170 } 171 171 return percentile; … … 175 175 double percentile = double.NaN; 176 176 if (preprocessingData.VariableHasType<double>(columnIndex)) { 177 percentile = GetValuesWithoutNaN<double>(columnIndex). Quantile(0.75);178 } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) { 179 percentile = GetDateTimeAsSeconds(columnIndex). Quantile(0.75);177 percentile = GetValuesWithoutNaN<double>(columnIndex).DefaultIfEmpty(double.NaN).Quantile(0.75); 178 } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) { 179 percentile = GetDateTimeAsSeconds(columnIndex).DefaultIfEmpty(double.NaN).Quantile(0.75); 180 180 } 181 181 return percentile;
Note: See TracChangeset
for help on using the changeset viewer.