# Changeset 1549

Ignore:
Timestamp:
04/10/09 15:21:06 (12 years ago)
Message:

Fixed a small bug in the MannWhitneyWilcoxonTest (#573)

Location:
trunk/sources/HeuristicLab.StatisticalAnalysis/3.2
Files:
2 edited

Unmodified
Removed
• ## trunk/sources/HeuristicLab.StatisticalAnalysis/3.2/MannWhitneyWilcoxonTest.cs

 r1548 } p2Idx++; R1 += (i - starti + 1) * commonRank / (rank - startRank + 1); R1 += (double)((i - starti + 1) * commonRank) / (double)(rank - startRank + 1); } else { p2Idx++; } p2Idx++; R1 += (i - starti + 1) * commonRank / (rank - startRank + 1); R1 += (double)((i - starti + 1) * commonRank) / (double)(rank - startRank + 1); } else if (p1[i] < p2[p2Idx]) { R1 += rank;
• ## trunk/sources/HeuristicLab.StatisticalAnalysis/3.2/MannWhitneyWilcoxonTestControl.cs

 r1548 double[] p2 = ConvertStringToArray(p2TextBox); if (p1.Length < 10 || p2.Length < 10) { MessageBox.Show("Sample size is too small to approximate, provide at least 10 samples in each population."); return; MessageBox.Show("Caution: Sample size is too small for good approximation, treat the results carefully. Provide at least 10 samples in each population."); } double alpha = Double.Parse(alphaTextBox.Text); double pVal = MannWhitneyWilcoxonTest.TwoTailedTest(p1, p2); if (pVal <= alpha) { resultLabel.Text = "The hypothesis H0 can be rejected at " + alpha.ToString() + ", the p-Value is " + pVal.ToString() + "\nThe samples are likely not to stem from the same distribution."; resultLabel.Text = "The hypothesis H0 can be rejected at " + alpha.ToString() + ", the approximated p-Value is " + pVal.ToString() + "\nThe samples are not likely to stem from the same distribution."; } else { resultLabel.Text = "The hypothesis H0 cannot be rejected at " + alpha.ToString();
Note: See TracChangeset for help on using the changeset viewer.