Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5570


Ignore:
Timestamp:
02/28/11 18:21:34 (14 years ago)
Author:
gkronber
Message:

#1418 fixed bug in dataset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs

    r5559 r5570  
    6262        if (variableNameToVariableIndexMapping != null) throw new InvalidOperationException("VariableNames can only be set once.");
    6363        this.variableNameToVariableIndexMapping = new Dictionary<string, int>();
     64        this.variableIndexToVariableNameMapping = new Dictionary<int, string>();
    6465        int i = 0;
    6566        foreach (string variableName in value) {
    6667          this.variableNameToVariableIndexMapping.Add(variableName, i);
     68          this.variableIndexToVariableNameMapping.Add(i, variableName);
    6769          i++;
    6870        }
    69         variableNameToVariableIndexMapping = variableIndexToVariableNameMapping.ToDictionary(x => x.Value, x => x.Key);
    7071      }
    7172    }
Note: See TracChangeset for help on using the changeset viewer.