Beispiel #1
0
        public void ValidateCumulativeDistribution(double scale, double shape, double x)
        {
            var    n        = new Pareto(scale, shape);
            double expected = 1.0 - Math.Pow(scale / x, shape);

            Assert.AreEqual(expected, n.CumulativeDistribution(x));
            Assert.AreEqual(expected, Pareto.CDF(scale, shape, x));
        }