Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/09 19:14:48 (16 years ago)
Author:
gkronber
Message:

Fixed a few bugs introduced with r2000. #656 (CEDMA server should handle only one data set (problem) at a time)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs

    r1786 r2012  
    120120    }
    121121
     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
    122129    public void SetVariableName(int variableIndex, string name) {
    123130      variableNames[variableIndex] = name;
    124131    }
    125132
    126 
    127133    public override IView CreateView() {
    128134      return new DatasetView(this);
    129135    }
    130136
     137    #region persistence
    131138    public override object Clone(IDictionary<Guid, object> clonedObjects) {
    132139      Dataset clone = new Dataset();
     
    256263      return xs;
    257264    }
     265    #endregion
    258266
    259267    public double GetMean(int column) {
Note: See TracChangeset for help on using the changeset viewer.