Changeset 10256 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingDataManipulation.cs
- Timestamp:
- 12/18/13 16:33:52 (11 years ago)
- File:
-
- 1 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)) {
Note: See TracChangeset
for help on using the changeset viewer.