public void StandardDevDoubleTest()
        {
            double[] values   = { 2.0, 3.0, 4.0 };
            var      standDev = StatStandardDev.StandardDev(values);

            Assert.AreEqual(0.81650, Helpers.Rounding.RoundFiveDecimals(standDev));
        }
        public void StandardDevTest()
        {
            int[] values   = { 1, 2, 3, 4, 5 };
            var   standDev = StatStandardDev.StandardDev(values);

            Assert.AreEqual(1.41421, Helpers.Rounding.RoundFiveDecimals(standDev));
        }
        public void StandardDevDoubleTest()
        {
            var finalStandardDev   = StatStandardDev.StandardDeviation(arrayB);
            var RoundedStandardDev = Helpers.Rounding.RoundOffTwoPlaces(finalStandardDev);

            Assert.AreEqual(0.14, RoundedStandardDev);
        }
 public double StandardDev(dynamic arrayA)
 {
     result = StatStandardDev.StandardDev(arrayA);
     return(result);
 }
Exemple #5
0
 public dynamic StandardDeviation(dynamic arrayA)
 {
     result = StatStandardDev.StandardDeviation(arrayA);
     return(result);
 }