CumulativeDistribution() public method

확률 분포 계산을 위한 누적분포함수
public CumulativeDistribution ( double x ) : double
x double The location at which to compute the cumulative distribution function.
return double
Exemplo n.º 1
0
        public void CumulativeDistributionTest([Values(-10, -10, -10, -10, -10, -10)] int lower,
                                               [Values(10, 10, 10, -10, -10, -10)] int upper,
                                               [Values(-5, 1, 10, 0, -10, -11)] double x,
                                               [Values(6.0 / 21.0, 12.0 / 21.0, 1.0, 1.0, 1.0, 0.0)] double cdf)
        {
            var b = new DiscreteUniform(lower, upper);

            Assert.AreEqual(cdf, b.CumulativeDistribution(x));
        }
Exemplo n.º 2
0
 public void CumulativeDistributionTest([Values(-10, -10, -10, -10, -10, -10)] int lower,
                                        [Values(10, 10, 10, -10, -10, -10)] int upper,
                                        [Values(-5, 1, 10, 0, -10, -11)] double x,
                                        [Values(6.0 / 21.0, 12.0 / 21.0, 1.0, 1.0, 1.0, 0.0)] double cdf) {
     var b = new DiscreteUniform(lower, upper);
     Assert.AreEqual(cdf, b.CumulativeDistribution(x));
 }