Class RandomChooserTest

java.lang.Object
ubic.basecode.math.RandomChooserTest

public class RandomChooserTest extends Object
Author:
paul
  • Constructor Details

    • RandomChooserTest

      public RandomChooserTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testChooseRandomDeck

      public void testChooseRandomDeck()
    • testChooserandomInt

      public void testChooserandomInt()
    • testChooserandomInts

      public void testChooserandomInts()
    • testChooserandomWrep

      public void testChooserandomWrep()
    • testRandomSubset

      public void testRandomSubset()
    • testRepeat

      public void testRepeat()
      Check correctness of the sampling algorithm for choosing subsets of size 2. The average value should come out close to k/2.
    • testRepeatSubset

      public void testRepeatSubset()
      Check correctness of the sampling algorithm for choosing subsets of size 2. The average value should come out very close to k/2.