Beispiel #1
0
 public void Base_ExpectedValue()
 {
     var Mu = 5.0;
     var X = new Gaussian(Mu, 2.0);
     var E = X.ExpectedValueWithConfidence().Mean;
     var Err = Math.Abs(E - Mu) / Mu;
     Assert.IsTrue(Err < eps);
 }
Beispiel #2
0
        public void Base_TestExpectedValue()
        {
            var X  = new Gaussian(10, 1);
            var t  = X.ExpectedValueWithConfidence(1000);
            var m  = t.Mean;
            var ci = t.CI;

            Assert.IsTrue(ApproxEqual(m, 10, 0.5));
        }
Beispiel #3
0
        public void Base_TestExpectedValue()
        {
            var X  = new Gaussian(10, 1);
            var t  = X.ExpectedValueWithConfidence(1000);
            var m  = t.Mean;
            var ci = t.CI;

            Assert.IsTrue(m - ci < 10 && 10 < m + ci);
        }
Beispiel #4
0
        public void Base_ExpectedValue()
        {
            var Mu  = 5.0;
            var X   = new Gaussian(Mu, 2.0);
            var E   = X.ExpectedValueWithConfidence().Mean;
            var Err = Math.Abs(E - Mu) / Mu;

            Assert.IsTrue(Err < eps);
        }
Beispiel #5
0
        public void Base_TestExpectedValue()
        {
            var X = new Gaussian(10, 1);
            var t = X.ExpectedValueWithConfidence(1000);
            var m = t.Mean;
            var ci = t.CI;

            Assert.IsTrue(ApproxEqual(m, 10, 0.5));
        }
Beispiel #6
0
        public void Base_TestExpectedValue()
        {
            var X = new Gaussian(10, 1);
            var t = X.ExpectedValueWithConfidence(1000);
            var m = t.Mean;
            var ci = t.CI;

            Assert.IsTrue(m - ci < 10 && 10 < m + ci);
        }