Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/14 11:31:26 (9 years ago)
Author:
ascheibe
Message:

#2031

  • fixed a bug in Cohens d / Hedges g calculation
  • fixed calculation of pairwise tests (no more columns with only zeroes)
  • some refactoring
File:
1 edited

Legend:

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

    r11375 r11692  
    3636      data[2] = new double[] { 2.8, 3.4, 3.7, 2.2, 2.0 };
    3737
    38       Assert.AreEqual(0.68, Math.Round(KruskalWallis.Test(data), 2));
     38      Assert.AreEqual(0.68, Math.Round(KruskalWallisTest.Test(data), 2));
    3939    }
    4040
     
    6262                              ,3605,4162,493,330,4595,2699,4457,3981,3499,1773,653,3176,134,3205,4537 };
    6363
    64       Assert.AreEqual(0.95, Math.Round(KruskalWallis.Test(data), 2));
     64      Assert.AreEqual(0.95, Math.Round(KruskalWallisTest.Test(data), 2));
    6565    }
    6666
     
    110110                              ,-0.947125493,2.087444922,0.271276104,-1.027604792,-0.364097727,-0.741089219};
    111111
    112       Assert.AreEqual(0.0253, Math.Round(KruskalWallis.Test(data), 4));
     112      Assert.AreEqual(0.0253, Math.Round(KruskalWallisTest.Test(data), 4));
    113113    }
    114114
     
    150150                              ,-0.947125493,2.087444922,0.271276104,-1.027604792,-0.364097727,-0.741089219};
    151151
    152       var result = KruskalWallis.Test(data);
     152      var result = KruskalWallisTest.Test(data);
    153153      Assert.IsTrue(result.IsAlmost(2.2E-16));
    154154    }
     
    167167                              ,2654,4588,3363,4750,1440,1892,3629,816,4317,34,2119,3290,1758 };
    168168
    169       Assert.AreEqual(1, Math.Round(KruskalWallis.Test(data), 2));
     169      Assert.AreEqual(1, Math.Round(KruskalWallisTest.Test(data), 2));
    170170    }
    171171  }
Note: See TracChangeset for help on using the changeset viewer.