コード例 #1
0
        public void OneSampleRaw()
        {
            var result = TTest.OneSample(142.1, 140.5, 10, 30);

            Assert.Equal(-0.87635609, result.T, 4);
            Assert.Equal(29, result.DegreesOfFreedom);
            Assert.Equal(0.80598089, result.OneSidedGreaterP, 6);
            Assert.Equal(0.19401911, result.OneSidedLessP, 6);
            Assert.Equal(0.38803823, result.TwoTailedP, 7);
        }
コード例 #2
0
        public void OneSampleFromList()
        {
            var result = TTest.OneSample(7, new[] { 1.0, 2, 3, 4, 5, 6, 7, 8, 9, 10 });

            Assert.Equal(-1.566699, result.T, 4);
        }