Changeset 2012 for trunk/sources/HeuristicLab.DataAnalysis
- Timestamp:
- 06/04/09 19:14:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs
r1786 r2012 120 120 } 121 121 122 public int GetVariableIndex(string variableName) { 123 for (int i = 0; i < variableNames.Length; i++) { 124 if (variableNames[i].Equals(variableName)) return i; 125 } 126 throw new ArgumentException("The variable name " + variableName + " was not found."); 127 } 128 122 129 public void SetVariableName(int variableIndex, string name) { 123 130 variableNames[variableIndex] = name; 124 131 } 125 132 126 127 133 public override IView CreateView() { 128 134 return new DatasetView(this); 129 135 } 130 136 137 #region persistence 131 138 public override object Clone(IDictionary<Guid, object> clonedObjects) { 132 139 Dataset clone = new Dataset(); … … 256 263 return xs; 257 264 } 265 #endregion 258 266 259 267 public double GetMean(int column) {
Note: See TracChangeset
for help on using the changeset viewer.