Changeset 11695 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestsView.cs
- Timestamp:
- 12/18/14 11:52:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestsView.cs
r11693 r11695 249 249 private void ResetUI() { 250 250 normalityLabel.Image = null; 251 normalityTextLabel.Text = string.Empty; 251 252 groupCompLabel.Image = null; 253 groupComTextLabel.Text = string.Empty; 252 254 pairwiseLabel.Image = null; 255 pairwiseTextLabel.Text = string.Empty; 256 253 257 pValTextBox.Text = string.Empty; 254 258 equalDistsTextBox.Text = string.Empty; … … 275 279 if (data.Any(x => x.Length <= requiredSampleSize)) { 276 280 if (showMessage) 277 MessageBox.Show(this, "You need to choose samples with a size greater 5.", "HeuristicLab", MessageBoxButtons.OK, 281 MessageBox.Show(this, "You need at least " + requiredSampleSize 282 + " samples per group for computing hypothesis tests.", "HeuristicLab", MessageBoxButtons.OK, 278 283 MessageBoxIcon.Error); 279 284 return false; … … 324 329 pValTextBox.Text = pval.ToString(); 325 330 if (pval < significanceLevel) { 326 this.Invoke(new Action(() => { groupCompLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; })); 331 this.Invoke(new Action(() => { 332 groupCompLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; 333 groupComTextLabel.Text = "There are groups with different distributions"; 334 })); 327 335 } else { 328 this.Invoke(new Action(() => { groupCompLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; })); 336 this.Invoke(new Action(() => { 337 groupCompLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; 338 groupComTextLabel.Text = "Groups have an equal distribution"; 339 })); 329 340 } 330 341 } … … 341 352 // p-value is below significance level and thus the null hypothesis (data is normally distributed) is rejected. 342 353 if (res.Any(x => x < significanceLevel)) { 343 this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; })); 354 this.Invoke(new Action(() => { 355 normalityLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; 356 normalityTextLabel.Text = "Some groups may not be normally distributed"; 357 })); 344 358 } else { 345 this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; })); 359 this.Invoke(new Action(() => { 360 normalityLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; 361 normalityTextLabel.Text = "All sample data is normally distributed"; 362 })); 346 363 } 347 364 } … … 389 406 390 407 if (cnt == 0) { 391 this.Invoke(new Action(() => { pairwiseLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; })); 408 this.Invoke(new Action(() => { 409 pairwiseLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; 410 pairwiseTextLabel.Text = "All groups have different distributions"; 411 })); 392 412 } else { 393 this.Invoke(new Action(() => { pairwiseLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; })); 413 this.Invoke(new Action(() => { 414 pairwiseLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; 415 pairwiseTextLabel.Text = "Some groups have equal distributions"; 416 })); 394 417 } 395 418 }
Note: See TracChangeset
for help on using the changeset viewer.