Package ubic.basecode.math
Class RandomChooserTest
- java.lang.Object
-
- ubic.basecode.math.RandomChooserTest
-
public class RandomChooserTest extends Object
- Author:
- paul
-
-
Constructor Summary
Constructors Constructor Description RandomChooserTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestChooseRandomDeck()voidtestChooserandomInt()Test method forRandomChooser.chooserandom(int, int).voidtestChooserandomInts()voidtestChooserandomWrep()Test method forRandomChooser.chooserandomWrep(int, int)} .voidtestRandomSubset()voidtestRepeat()Check correctness of the sampling algorithm for choosing subsets of size 2.voidtestRepeatSubset()Check correctness of the sampling algorithm for choosing subsets of size 2.
-
-
-
Method Detail
-
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.
-
-