Package ubic.basecode.math
Class RandomChooserTest
java.lang.Object
ubic.basecode.math.RandomChooserTest
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidTest method forRandomChooser.chooserandom(int, int).voidvoidTest method forRandomChooser.chooserandomWrep(int, int)} .voidvoidCheck correctness of the sampling algorithm for choosing subsets of size 2.voidCheck correctness of the sampling algorithm for choosing subsets of size 2.
-
Constructor Details
-
RandomChooserTest
public RandomChooserTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testChooseRandomDeck
public void testChooseRandomDeck() -
testChooserandomInt
public void testChooserandomInt()Test method forRandomChooser.chooserandom(int, int). -
testChooserandomInts
public void testChooserandomInts() -
testChooserandomWrep
public void testChooserandomWrep()Test method forRandomChooser.chooserandomWrep(int, int)} . -
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.
-