- Timestamp:
- 12/18/13 16:33:52 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingDataManipulation.cs
r10255 r10256 5 5 6 6 namespace HeuristicLab.DataPreprocessing { 7 class PreprocessingDataManipulation : IPreprocessingDataManipulation {7 public class PreprocessingDataManipulation : IPreprocessingDataManipulation { 8 8 private IPreprocessingData preprocessingData; 9 9 private IStatisticsLogic statisticInfo; … … 115 115 } 116 116 117 reOrder toIndices(shuffledIndices);117 reOrderToIndices(shuffledIndices); 118 118 } 119 119 } 120 120 121 public void reOrdertoIndices(IEnumerable<int> indices) 122 { 123 List<Tuple<int, int>> indicesTuple = new List<Tuple<int, int>>(); 124 125 for (int i = 0; i < indices.Count(); ++i) { 126 new Tuple<int, int>(i, indices.ElementAt(i)); 127 } 121 public void reOrderToIndices(IEnumerable<int> indices) { 122 List<Tuple<int, int>> indicesTuple = new List<Tuple<int, int>>(); 128 123 129 reOrdertoIndices(indicesTuple); 124 for (int i = 0; i < indices.Count(); ++i) { 125 new Tuple<int, int>(i, indices.ElementAt(i)); 126 } 127 128 reOrderToIndices(indicesTuple); 130 129 } 131 130 132 public void reOrder toIndices(IList<Tuple<int, int>> indices) {131 public void reOrderToIndices(IList<System.Tuple<int, int>> indices) { 133 132 foreach (string variableName in preprocessingData.VariableNames) { 134 133 if (preprocessingData.IsType<double>(variableName)) { -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingDataManipulation.cs
r10253 r10256 2 2 using System.Collections.Generic; 3 3 namespace HeuristicLab.DataPreprocessing { 4 interface IPreprocessingDataManipulation { 4 public interface IPreprocessingDataManipulation { 5 void reOrderToIndices(IEnumerable<int> indices); 5 6 void reOrderToIndices(IList<Tuple<int, int>> indices); 6 7 void ReplaceIndicesByAverageValue(string variableName, IEnumerable<int> indices); -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataPreprocessingView.cs
r10254 r10256 40 40 41 41 private void InitializeContents() { 42 dataGridContent = new DataGridContent(new DataGridLogic(Content != null ? this.Content.Data : null)); 42 IPreprocessingData data = Content != null ? this.Content.Data : null; 43 ISearchLogic searchLogic = new SearchLogic(data); 44 dataGridContent = new DataGridContent(new DataGridLogic(data), new PreprocessingDataManipulation(data, searchLogic, new StatisticsLogic(data, searchLogic))); 43 45 44 46 listViewItemItemMapping = new Dictionary<ListViewItem, IItem>();
Note: See TracChangeset
for help on using the changeset viewer.