Changeset 15110 for trunk/sources/HeuristicLab.DataPreprocessing/3.4/Logic
- Timestamp:
- 07/03/17 10:57:53 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing
-
Property
svn:mergeinfo
set to
/branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Logic/Filter/ComparisonFilter.cs
r14185 r15110 30 30 [Item("ComparisonFilter", "A filter which compares the member of the preprocessing data with the constraint data.")] 31 31 public class ComparisonFilter : ComparisonConstraint, IFilter { 32 33 32 public override string ItemName { 34 33 get { return "ComparisonFilter"; } -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Logic/FilterLogic.cs
r14185 r15110 27 27 namespace HeuristicLab.DataPreprocessing { 28 28 public class FilterLogic { 29 30 29 public IFilteredPreprocessingData PreprocessingData { get; private set; } 31 30 32 31 public bool IsFiltered { 33 get { 34 return PreprocessingData.IsFiltered; 35 } 32 get { return PreprocessingData.IsFiltered; } 36 33 } 37 34 -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Logic/ManipulationLogic.cs
r14886 r15110 40 40 } 41 41 42 public ManipulationLogic(ITransactionalPreprocessingData _prepocessingData, SearchLogic theSearchLogic, StatisticsLogic theStatisticsLogic) {43 preprocessingData = _prepocessingData;42 public ManipulationLogic(ITransactionalPreprocessingData preprocessingData, SearchLogic theSearchLogic, StatisticsLogic theStatisticsLogic) { 43 this.preprocessingData = preprocessingData; 44 44 searchLogic = theSearchLogic; 45 45 statisticsLogic = theStatisticsLogic; … … 109 109 preprocessingData.InTransaction(() => { 110 110 foreach (var column in cells) { 111 int countValues = 0;112 if (preprocessingData.VariableHasType<double>(column.Key)) {113 countValues = preprocessingData.GetValues<double>(column.Key).Count();114 } else if (preprocessingData.VariableHasType<DateTime>(column.Key)) {115 countValues = preprocessingData.GetValues<DateTime>(column.Key).Count();116 }117 118 111 IList<Tuple<int, int>> startEndings = GetStartAndEndingsForInterpolation(column); 119 112 foreach (var tuple in startEndings) { … … 291 284 292 285 public List<int> RowsWithMissingValuesGreater(double percent) { 293 294 286 List<int> rows = new List<int>(); 295 287 … … 305 297 306 298 public List<int> ColumnsWithMissingValuesGreater(double percent) { 307 308 299 List<int> columns = new List<int>(); 309 300 for (int i = 0; i < preprocessingData.Columns; ++i) { … … 318 309 319 310 public List<int> ColumnsWithVarianceSmaller(double variance) { 320 321 311 List<int> columns = new List<int>(); 322 312 for (int i = 0; i < preprocessingData.Columns; ++i) { … … 362 352 }); 363 353 } 364 365 354 } 366 355 } -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Logic/StatisticsLogic.cs
r14185 r15110 27 27 namespace HeuristicLab.DataPreprocessing { 28 28 public class StatisticsLogic { 29 30 29 private readonly ITransactionalPreprocessingData preprocessingData; 31 30 private readonly SearchLogic searchLogic;
Note: See TracChangeset
for help on using the changeset viewer.