Exemple #1
0
        public void PdfTest()
        {
            ProbabilityDistributionTest.Pdf.Succeed(
                TestableFiniteDiscreteDistribution00.Get());

            ProbabilityDistributionTest.Pdf.Fail.ArgumentsIsNull(
                TestableFiniteDiscreteDistribution00.Get());
        }
Exemple #2
0
        public void SampleTest()
        {
            ProbabilityDistributionTest.Sample.Succeed(
                testableDistribution: TestableFiniteDiscreteDistribution00.Get(),
                sampleSize: 1000,
                delta: 0.01);

            ProbabilityDistributionTest.Sample.Fail.DestinationArrayIsNull(
                TestableFiniteDiscreteDistribution00.Get());

            ProbabilityDistributionTest.Sample.Fail.DestinationIndexIsNegative(
                TestableFiniteDiscreteDistribution00.Get());

            ProbabilityDistributionTest.Sample.Fail.SampleSizeIsNotPositive(
                TestableFiniteDiscreteDistribution00.Get());

            ProbabilityDistributionTest.Sample.Fail.SampleSizeIsTooBig(
                TestableFiniteDiscreteDistribution00.Get());
        }
Exemple #3
0
 public void VarianceTest()
 {
     ProbabilityDistributionTest.Variance.Succeed(
         TestableFiniteDiscreteDistribution00.Get());
 }
Exemple #4
0
 public void StandardDeviationTest()
 {
     ProbabilityDistributionTest.StandardDeviation.Succeed(
         TestableFiniteDiscreteDistribution00.Get());
 }
Exemple #5
0
 public void MeanTest()
 {
     ProbabilityDistributionTest.Mean.Succeed(
         TestableFiniteDiscreteDistribution00.Get());
 }
Exemple #6
0
 public void InverseCdfTest()
 {
     ProbabilityDistributionTest.InverseCdf.Fail.CdfCannotBeInverted(
         TestableFiniteDiscreteDistribution00.Get());
 }
Exemple #7
0
 public void CanInvertCdfTest()
 {
     ProbabilityDistributionTest.CanInvertCdf.Succeed(
         TestableFiniteDiscreteDistribution00.Get());
 }