Exemplo n.º 1
0
        public void PdfTest()
        {
            ProbabilityDistributionTest.Pdf.Succeed(
                TestableBernoulliDistribution00.Get());

            ProbabilityDistributionTest.Pdf.Fail.ArgumentsIsNull(
                TestableBernoulliDistribution00.Get());
        }
Exemplo n.º 2
0
        public void SampleTest()
        {
            ProbabilityDistributionTest.Sample.Succeed(
                testableDistribution: TestableBernoulliDistribution00.Get(),
                sampleSize: 1000,
                delta: 0.01);

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

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

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

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