Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11693


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

#2031 added dialog for configuring the SignificanceLevel and renamed view

Location:
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3
Files:
2 added
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/HeuristicLab.Analysis.Statistics-3.3.csproj

    r11692 r11693  
    140140      <DependentUpon>SampleSizeInfluenceView.cs</DependentUpon>
    141141    </Compile>
    142     <Compile Include="StatisticalTestingView.cs">
    143       <SubType>UserControl</SubType>
    144     </Compile>
    145     <Compile Include="StatisticalTestingView.designer.cs">
    146       <DependentUpon>StatisticalTestingView.cs</DependentUpon>
     142    <Compile Include="StatisticalTestsView.cs">
     143      <SubType>UserControl</SubType>
     144    </Compile>
     145    <Compile Include="StatisticalTestsView.designer.cs">
     146      <DependentUpon>StatisticalTestsView.cs</DependentUpon>
    147147    </Compile>
    148148    <Compile Include="KruskalWallisTest.cs" />
     
    162162    <Compile Include="Properties\AssemblyInfo.cs" />
    163163    <Compile Include="PairwiseTest.cs" />
     164    <Compile Include="StatisticalTestsConfigurationDialog.cs">
     165      <SubType>Form</SubType>
     166    </Compile>
     167    <Compile Include="StatisticalTestsConfigurationDialog.Designer.cs">
     168      <DependentUpon>StatisticalTestsConfigurationDialog.cs</DependentUpon>
     169    </Compile>
    164170  </ItemGroup>
    165171  <ItemGroup>
     
    179185      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    180186    </EmbeddedResource>
    181     <EmbeddedResource Include="StatisticalTestingView.resx">
    182       <DependentUpon>StatisticalTestingView.cs</DependentUpon>
     187    <EmbeddedResource Include="StatisticalTestsView.resx">
     188      <DependentUpon>StatisticalTestsView.cs</DependentUpon>
    183189    </EmbeddedResource>
    184190  </ItemGroup>
  • 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
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestsView.designer.cs

    r11691 r11693  
    2121
    2222namespace HeuristicLab.Analysis.Statistics {
    23   partial class StatisticalTestingView {
     23  partial class StatisticalTestsView {
    2424    /// <summary>
    2525    /// Required designer variable.
     
    464464      //
    465465      this.Controls.Add(this.tabControl);
    466       this.Name = "StatisticalTestingView";
     466      this.Name = "StatisticalTestsView";
    467467      this.Size = new System.Drawing.Size(936, 573);
    468468      this.contextMenuStrip1.ResumeLayout(false);
Note: See TracChangeset for help on using the changeset viewer.