示例#1
0
        public void TwoSampleTest()
        {
            var result = TTest.TwoSample(5.5, 3.0277, 10, 5.97, 3.0782, 10);

            Assert.Equal(-0.3442, result.T, 3);
            Assert.Equal(18, result.DegreesOfFreedom, 2);
        }
示例#2
0
        public void TwoSampleTestFromSamples()
        {
            var result = TTest.TwoSample(new [] { 1.0, 2, 3, 4, 5, 6, 7, 8, 9, 10 },
                                         new[] { 1.0, 2, 3, 4, 5, 6, 7, 8, 9, 10 }.Select(i => i + 0.5));

            Assert.Equal(-0.3693, result.T, 3);
            Assert.Equal(18, result.DegreesOfFreedom, 2);
        }