Changeset 16307 for branches/2845_EnhancedProgress/HeuristicLab.DataPreprocessing/3.4/Data/IPreprocessingData.cs
- Timestamp:
- 11/20/18 11:54:35 (6 years ago)
- Location:
- branches/2845_EnhancedProgress
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.DataPreprocessing
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.DataPreprocessing/3.4
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.DataPreprocessing/3.4/Data/IPreprocessingData.cs
r15110 r16307 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 namespace HeuristicLab.DataPreprocessing { 29 29 public interface IPreprocessingData : INamedItem { 30 #region Cells 31 bool IsCellEmpty(int columnIndex, int rowIndex); 30 32 T GetCell<T>(int columnIndex, int rowIndex); 31 33 … … 39 41 bool SetValue(string value, int columnIndex, int rowIndex); 40 42 43 int Columns { get; } 44 int Rows { get; } 45 #endregion 46 47 #region Rows 41 48 void InsertRow(int rowIndex); 42 49 void DeleteRow(int rowIndex); … … 50 57 51 58 bool AreAllStringColumns(IEnumerable<int> columnIndices); 52 bool Validate(string value, out string errorMessage, int columnIndex);59 #endregion 53 60 54 IntRange TrainingPartition { get; } 55 IntRange TestPartition { get; } 56 57 IList<ITransformation> Transformations { get; } 58 61 #region Variables 59 62 IEnumerable<string> VariableNames { get; } 60 63 IEnumerable<string> GetDoubleVariableNames(); … … 63 66 64 67 bool VariableHasType<T>(int columnIndex); 68 Type GetVariableType(int columnIndex); 65 69 66 70 IList<string> InputVariables { get; } 67 71 string TargetVariable { get; } // optional 72 #endregion 68 73 69 int Columns { get; } 70 int Rows { get; } 74 #region Partitions 75 IntRange TrainingPartition { get; } 76 IntRange TestPartition { get; } 77 #endregion 71 78 79 #region Transformations 80 IList<ITransformation> Transformations { get; } 81 #endregion 82 83 #region Validation 84 bool Validate(string value, out string errorMessage, int columnIndex); 85 #endregion 86 87 #region Import & Export 88 void Import(IDataAnalysisProblemData problemData); 72 89 Dataset ExportToDataset(); 90 #endregion 73 91 92 #region Selection 74 93 IDictionary<int, IList<int>> Selection { get; set; } 75 94 void ClearSelection(); 76 95 77 96 event EventHandler SelectionChanged; 97 #endregion 98 99 #region Transactions 100 event DataPreprocessingChangedEventHandler Changed; 101 102 bool IsUndoAvailable { get; } 103 void Undo(); 104 void InTransaction(Action action, DataPreprocessingChangedEventType type = DataPreprocessingChangedEventType.Any); 105 void BeginTransaction(DataPreprocessingChangedEventType type); 106 void EndTransaction(); 107 #endregion 108 109 #region Statistics 110 T GetMin<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)); 111 T GetMax<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)); 112 T GetMean<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)); 113 T GetMedian<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) where T : IComparable<T>; 114 T GetMode<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) where T : IEquatable<T>; 115 T GetStandardDeviation<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)); 116 T GetVariance<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)); 117 T GetQuantile<T>(double alpha, int columnIndex, bool considerSelection = false, T emptyValue = default(T)) where T : IComparable<T>; 118 int GetDistinctValues<T>(int columnIndex, bool considerSelection = false); 119 120 int GetMissingValueCount(); 121 int GetMissingValueCount(int columnIndex); 122 int GetRowMissingValueCount(int rowIndex); 123 #endregion 78 124 } 79 125 }
Note: See TracChangeset
for help on using the changeset viewer.