コード例 #1
0
        public void Mode()
        {
            var    calc   = new CalculateStatistics();
            double result = calc.Mean("1,2,3,3");

            Assert.AreEqual("3", result);
        }
コード例 #2
0
        public void Median()
        {
            var    calc   = new CalculateStatistics();
            double result = calc.Mean("1,2,3,4,5,6");

            Assert.AreEqual(3.5, result);
        }
コード例 #3
0
        public void Test1()
        {
            var calc = new CalculateStatistics();

            Assert.AreEqual(2, calc.Mean("1,2,3"));
        }