Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 16:34:31 (13 years ago)
Author:
gkronber
Message:

#1418 Implemented interactive simplifier views for symbolic classification and regression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionView.cs

    r5664 r5717  
    8787      Content.ModelChanged += new EventHandler(Content_ModelChanged);
    8888      Content.ProblemDataChanged += new EventHandler(Content_ProblemDataChanged);
    89       Content.ThresholdsChanged += new EventHandler(Content_ThresholdsChanged);
    9089    }
    9190    protected override void DeregisterContentEvents() {
     
    9392      Content.ModelChanged -= new EventHandler(Content_ModelChanged);
    9493      Content.ProblemDataChanged -= new EventHandler(Content_ProblemDataChanged);
    95       Content.ThresholdsChanged -= new EventHandler(Content_ThresholdsChanged);
    9694    }
    9795
     
    168166      chart.Annotations.Clear();
    169167      int classIndex = 1;
    170       foreach (double threshold in Content.Thresholds) {
     168      foreach (double threshold in Content.Model.Thresholds) {
    171169        if (!double.IsInfinity(threshold)) {
    172170          HorizontalLineAnnotation annotation = new HorizontalLineAnnotation();
     
    235233    private void chart_AnnotationPositionChanging(object sender, AnnotationPositionChangingEventArgs e) {
    236234      int classIndex = (int)e.Annotation.Tag;
    237       double[] thresholds = Content.Thresholds.ToArray();
     235      double[] thresholds = Content.Model.Thresholds.ToArray();
    238236      double max = thresholds[classIndex + 1];
    239237      double min = thresholds[classIndex - 1];
     
    246244
    247245      thresholds[classIndex] = e.NewLocationY;
    248       Content.Thresholds = thresholds;
     246      Content.Model.Thresholds = thresholds;
    249247    }
    250248
Note: See TracChangeset for help on using the changeset viewer.