Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/14 12:30:08 (10 years ago)
Author:
mleitner
Message:

Update correlationmatrix on preprocessing data change - improve performance on datagrid selection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/CorrelationMatrixContent.cs

    r10914 r10934  
    2929  [Item("Feature Correlation Matrix", "Represents the feature correlation matrix.")]
    3030  public class CorrelationMatrixContent : Item, IViewShortcut {
    31     public DataAnalysisProblemData ProblemData { get; set; }
    3231
    33     public CorrelationMatrixContent(DataAnalysisProblemData data) {
    34       ProblemData = data;
     32    public DataAnalysisProblemData ProblemData {
     33      get {
     34        var creator = new ProblemDataCreator(Context);
     35        return (DataAnalysisProblemData)creator.CreateProblemData();
     36      }
     37    }
     38
     39    public ITransactionalPreprocessingData PreprocessingData {
     40      get {
     41        return Context.Data;
     42      }
     43    }
     44
     45    private IPreprocessingContext Context { get; set; }
     46    public CorrelationMatrixContent(IPreprocessingContext context) {
     47      Context = context;
     48
     49
    3550    }
    3651
     
    4762      return new CorrelationMatrixContent(this, cloner);
    4863    }
     64
     65    public event DataPreprocessingChangedEventHandler Changed {
     66      add { PreprocessingData.Changed += value; }
     67      remove { PreprocessingData.Changed -= value; }
     68    }
    4969  }
    5070}
Note: See TracChangeset for help on using the changeset viewer.