Ignore:
Timestamp:
12/17/14 13:36:14 (8 years ago)
Author:
ascheibe
Message:

#2031 added dialog for configuring the SignificanceLevel and renamed view

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestsView.cs

    r11692 r11693  
    2626using System.Windows.Forms;
    2727using HeuristicLab.Collections;
     28using HeuristicLab.Common;
    2829using HeuristicLab.Core.Views;
    2930using HeuristicLab.Data;
     
    3536  [View("Statistical Tests", "HeuristicLab.Analysis.Statistics.InfoResources.StatisticalTestsInfo.rtf")]
    3637  [Content(typeof(RunCollection), false)]
    37   public sealed partial class StatisticalTestingView : ItemView {
    38     private const double significanceLevel = 0.05;
     38  public sealed partial class StatisticalTestsView : ItemView, IConfigureableView {
     39    private double significanceLevel = 0.05;
    3940    private const int requiredSampleSize = 5;
    4041    private double[][] data;
    4142
    42     public StatisticalTestingView() {
    43       InitializeComponent();
     43    public double SignificanceLevel {
     44      get { return significanceLevel; }
     45      set {
     46        if (!significanceLevel.IsAlmost(value)) {
     47          significanceLevel = value;
     48          ResetUI();
     49          CalculateValues();
     50        }
     51      }
    4452    }
    4553
     
    5260      get { return true; }
    5361      set { /*not needed because results are always readonly */}
     62    }
     63
     64    public StatisticalTestsView() {
     65      InitializeComponent();
     66    }
     67
     68    public void ShowConfiguration() {
     69      using (StatisticalTestsConfigurationDialog dlg = new StatisticalTestsConfigurationDialog(this)) {
     70        dlg.ShowDialog(this);
     71      }
    5472    }
    5573
Note: See TracChangeset for help on using the changeset viewer.