Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2039


Ignore:
Timestamp:
06/10/09 10:49:12 (15 years ago)
Author:
gkronber
Message:

Improved speed of dataset shuffler (related to r2038) #612 (DataSetShuffler is extremly slow)

File:
1 edited

Legend:

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

    r1529 r2039  
    4949
    5050    private void ExchangeRows(Dataset dataset, int i, int j) {
     51      dataset.FireChangeEvents = false;
    5152      for(int k = 0; k < dataset.Columns; k++) {
    5253        double temp = dataset.GetValue(i, k);
     
    5455        dataset.SetValue(j, k, temp);
    5556      }
     57      dataset.FireChangeEvents = true;
     58      dataset.FireChanged();
    5659    }
    5760  }
Note: See TracChangeset for help on using the changeset viewer.