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 void
setUp()
void
testChooseRandomDeck()
void
testChooserandomInt()
Test method forRandomChooser.chooserandom(int, int)
.void
testChooserandomInts()
void
testChooserandomWrep()
Test method forRandomChooser.chooserandomWrep(int, int)
} .void
testRandomSubset()
void
testRepeat()
Check correctness of the sampling algorithm for choosing subsets of size 2.void
testRepeatSubset()
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.
-
-