Changeset 11693 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestsView.cs
- Timestamp:
- 12/17/14 13:36:14 (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestsView.cs
r11692 r11693 26 26 using System.Windows.Forms; 27 27 using HeuristicLab.Collections; 28 using HeuristicLab.Common; 28 29 using HeuristicLab.Core.Views; 29 30 using HeuristicLab.Data; … … 35 36 [View("Statistical Tests", "HeuristicLab.Analysis.Statistics.InfoResources.StatisticalTestsInfo.rtf")] 36 37 [Content(typeof(RunCollection), false)] 37 public sealed partial class StatisticalTest ingView : ItemView {38 private constdouble significanceLevel = 0.05;38 public sealed partial class StatisticalTestsView : ItemView, IConfigureableView { 39 private double significanceLevel = 0.05; 39 40 private const int requiredSampleSize = 5; 40 41 private double[][] data; 41 42 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 } 44 52 } 45 53 … … 52 60 get { return true; } 53 61 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 } 54 72 } 55 73
Note: See TracChangeset
for help on using the changeset viewer.