Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/10 11:34:32 (14 years ago)
Author:
mkommend
Message:

implemented first version of LR (ticket #1012)

File:
1 edited

Legend:

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

    r3493 r3839  
    8989      }
    9090    }
     91    public double this[string variableName, int rowIndex] {
     92      get {
     93        int columnIndex = GetVariableIndex(variableName);
     94        return data[rowIndex, columnIndex];
     95      }
     96      set {
     97        int columnIndex = GetVariableIndex(variableName);
     98        if (!value.Equals(data[rowIndex, columnIndex])) {
     99          data[rowIndex, columnIndex] = value;
     100          OnDataChanged(new EventArgs<int, int>(rowIndex, columnIndex));
     101          OnItemChanged(rowIndex, columnIndex);
     102        }
     103      }
     104    }
    91105    // access to full columns
    92106    public double[] this[string variableName] {
Note: See TracChangeset for help on using the changeset viewer.