Changeset 9951
- Timestamp:
- 09/12/13 14:53:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/Statistics.UnitTests/BonferroniHolmUnitTest.cs
r9950 r9951 58 58 * p = 0.01, 0.04, 0.03, 0.005 59 59 * a = 0.05 60 * cor_p = 0.03, 0.06, 0.06, 0.02 60 61 * h = 1, 0, 0, 1 61 62 * 62 63 */ 63 64 65 double[] correctedPValues = new double[] { 0.03, 0.06, 0.06, 0.02 }; 64 66 double[] pVals = new[] { 0.01, 0.04, 0.03, 0.005 }; 65 67 bool[] h = new bool[] { true, false, false, true }; 66 68 bool[] decision; 67 69 68 BonferroniHolm.Calculate(0.05, pVals, out decision);70 var result = BonferroniHolm.Calculate(0.05, pVals, out decision); 69 71 70 72 for (int i = 0; i < pVals.Length; i++) { 73 Assert.AreEqual(correctedPValues[i], result[i]); 71 74 Assert.AreEqual(h[i], decision[i]); 72 75 }
Note: See TracChangeset
for help on using the changeset viewer.