Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10255


Ignore:
Timestamp:
12/18/13 16:29:48 (9 years ago)
Author:
mleitner
Message:

add reOrderToIndices which takes enumerable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingDataManipulation.cs

    r10253 r10255  
    119119    }
    120120
     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        }
     128
     129        reOrdertoIndices(indicesTuple);
     130    }
     131
    121132    public void reOrdertoIndices(IList<Tuple<int, int>> indices) {
    122133      foreach (string variableName in preprocessingData.VariableNames) {
Note: See TracChangeset for help on using the changeset viewer.