Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9951


Ignore:
Timestamp:
09/12/13 14:53:06 (11 years ago)
Author:
ascheibe
Message:

#2031 updated unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/Statistics.UnitTests/BonferroniHolmUnitTest.cs

    r9950 r9951  
    5858       * p = 0.01, 0.04, 0.03,  0.005
    5959       * a = 0.05
     60       * cor_p = 0.03, 0.06, 0.06, 0.02
    6061       * h = 1, 0, 0, 1
    6162       *
    6263       */
    6364
     65      double[] correctedPValues = new double[] { 0.03, 0.06, 0.06, 0.02 };
    6466      double[] pVals = new[] { 0.01, 0.04, 0.03, 0.005 };
    6567      bool[] h = new bool[] { true, false, false, true };
    6668      bool[] decision;
    6769
    68       BonferroniHolm.Calculate(0.05, pVals, out decision);
     70      var result = BonferroniHolm.Calculate(0.05, pVals, out decision);
    6971
    7072      for (int i = 0; i < pVals.Length; i++) {
     73        Assert.AreEqual(correctedPValues[i], result[i]);
    7174        Assert.AreEqual(h[i], decision[i]);
    7275      }
Note: See TracChangeset for help on using the changeset viewer.