示例#1
0
        public void TestEcartTypeBorneInvalide()
        {
            double sommeDistance  = double.NaN;
            int    nbrPairDonnees = 2;

            double ecartType = VarianceCalculator.GetEcartType(sommeDistance, nbrPairDonnees);

            Assert.Equal(double.NaN, ecartType);
        }
示例#2
0
        public void TestEcartTypeBorneSuperieure()
        {
            const double ecartTypeTest = 4.47;

            double sommeDistance  = 20;
            int    nbrPairDonnees = 1;

            double ecartType = VarianceCalculator.GetEcartType(sommeDistance, nbrPairDonnees);

            Assert.Equal(Math.Round(ecartType, 2), ecartTypeTest);
        }
示例#3
0
        public void TestEcartTypeBorneInferieure()
        {
            const double ecartTypeTest = 10;

            double sommeDistance  = 200;
            int    nbrPairDonnees = 2;

            double ecartType = VarianceCalculator.GetEcartType(sommeDistance, nbrPairDonnees);

            Assert.Equal(ecartType, ecartTypeTest);
        }