Example #1
0
        public void InclusionProbabilitiesTest()
        {
            RandomSamplingTest.InclusionProbabilities.Succeed(
                TestableUnequalProbabilityRandomSampling00.Get(),
                RandomSamplingTest.Accuracy);

            RandomSamplingTest.InclusionProbabilities.Succeed(
                TestableUnequalProbabilityRandomSampling01.Get(),
                RandomSamplingTest.Accuracy);
        }
Example #2
0
        public void NextDoubleMatrixTest()
        {
            RandomSamplingTest.NextDoubleMatrix.Succeed(
                TestableUnequalProbabilityRandomSampling00.Get(),
                // TestableUnequalProbabilityRandomSampling00
                // represents an unequal probability
                // random sampling of
                // 4 units
                // from a population having 9 units.
                // The number of distinct samples is 126
                numberOfSamples: 126 * 700,
                RandomSamplingTest.Accuracy);

            RandomSamplingTest.NextDoubleMatrix.Succeed(
                TestableUnequalProbabilityRandomSampling01.Get(),
                // TestableUnequalProbabilityRandomSampling00
                // represents an unequal probability
                // random sampling of
                // 4 units
                // from a population having 9 units.
                // The number of distinct samples is 126
                numberOfSamples: 126 * 700,
                RandomSamplingTest.Accuracy);
        }