コード例 #1
0
        public void validate_static_method_getdoublenormallydistributedrandomnumbers()
        {
            Random rng   = new MathNet.Numerics.Random.MersenneTwister(0);
            double nrng1 = 0.0;
            double nrng2 = 0.0;

            SourceToolbox.GetDoubleNormallyDistributedRandomNumbers(ref nrng1, ref nrng2, _limitL, _limitU, rng);

            Assert.Less(Math.Abs(nrng1 - _tp[40]), ACCEPTABLE_PRECISION);
            Assert.Less(Math.Abs(nrng2 - _tp[41]), ACCEPTABLE_PRECISION);
        }