예제 #1
0
        public void StandDevTest()
        {
            int[] values   = { 1, 2, 3, 4, 5 };
            var   standDev = StatStandDev.StandDev(values);

            Assert.AreEqual(1.41421, Helpers.Rounding.RoundToFive(standDev));
        }
예제 #2
0
        public void StandDevTest()
        {
            int[] values   = { 1, 2, 3, 4, 5 };
            var   standDev = StatStandDev.StandDev(values);

            Assert.AreEqual(1.41421, Math.Round(standDev, 5, MidpointRounding.AwayFromZero));
        }
예제 #3
0
        public void StandDevTest1()
        {
            double[] values   = { 1.3, 2.1, 3.7, 4.5, 5.8 };
            var      standDev = StatStandDev.StandDev(values);

            Assert.AreEqual(1.62037, Math.Round(standDev, 5, MidpointRounding.AwayFromZero));
        }
예제 #4
0
 public dynamic StandDev(dynamic values)
 {
     solution = StatStandDev.StandDev(values);
     return(solution);
 }