Changeset 7736
- Timestamp:
- 04/17/12 14:56:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r7259 r7736 72 72 rows = variableValues.First().Count; 73 73 this.variableNames = new List<string>(variableNames); 74 this.variableValues = new Dictionary<string, IList>( );74 this.variableValues = new Dictionary<string, IList>(this.variableNames.Count); 75 75 for (int i = 0; i < this.variableNames.Count; i++) { 76 76 var values = variableValues.ElementAt(i); … … 107 107 this.variableNames = new List<string>(variableNames); 108 108 109 this.variableValues = new Dictionary<string, IList>( );109 this.variableValues = new Dictionary<string, IList>(variableValues.GetLength(1)); 110 110 for (int col = 0; col < variableValues.GetLength(1); col++) { 111 111 string columName = this.variableNames[col]; 112 var values = new List<double>( );112 var values = new List<double>(variableValues.GetLength(0)); 113 113 for (int row = 0; row < variableValues.GetLength(0); row++) { 114 114 values.Add(variableValues[row, col]);
Note: See TracChangeset
for help on using the changeset viewer.