Esempio n. 1
0
        public void TwoNumberTest()
        {
            var exp    = new Stdevp(new[] { new Number(4), new Number(9) });
            var result = (double)exp.Execute();

            Assert.Equal(2.5, result, 14);
        }
Esempio n. 2
0
        public void VectorTest()
        {
            var exp    = new Stdevp(new[] { new Vector(new[] { new Number(2), new Number(4), new Number(9) }) });
            var result = (double)exp.Execute();

            Assert.Equal(2.94392028877595, result, 14);
        }
Esempio n. 3
0
        public void OneNumberTest()
        {
            var exp    = new Stdevp(new[] { new Number(4) });
            var result = (double)exp.Execute();

            Assert.Equal(0.0, result);
        }
Esempio n. 4
0
        public void TwoNumberTest()
        {
            var exp = new Stdevp(new[] { new Number(4), new Number(9) }, 2);
            var result = (double)exp.Execute();

            Assert.Equal(2.5, result, 14);
        }
Esempio n. 5
0
        public void ThreeNumberTest()
        {
            var exp = new Stdevp(new[] { new Number(9), new Number(2), new Number(4) }, 3);
            var result = (double)exp.Execute();

            Assert.Equal(2.94392028877595, result, 14);
        }
Esempio n. 6
0
        public void OneNumberTest()
        {
            var exp = new Stdevp(new[] { new Number(4) }, 1);
            var result = (double)exp.Execute();

            Assert.Equal(0.0, result);
        }
Esempio n. 7
0
        public void VectorTest()
        {
            var exp = new Stdevp(new[] { new Vector(new[] { new Number(2), new Number(4), new Number(9) }) }, 1);
            var result = (double)exp.Execute();

            Assert.Equal(2.94392028877595, result, 14);
        }