示例#1
0
        public static double StandDev(dynamic values)
        {
            double variance = StatVariance.Variance(values);
            double standDev = SqRt.Root(variance);

            return(standDev);
        }
示例#2
0
        public void RootIntArrayTest()
        {
            double[] x = new double[f.Length];
            double[] y = SqRt.Root(f);
            int      i = 0;

            foreach (int a in f)
            {
                x[i] = SqRt.Root(a);
                Assert.AreEqual(x[i], y[i]);
                i++;
            }
        }
示例#3
0
        public void RootDoubleArrayTest()
        {
            double[] x = new double[e.Length];
            double[] y = SqRt.Root(e);
            int      i = 0;

            foreach (double a in e)
            {
                x[i] = SqRt.Root(a);
                Assert.AreEqual(x[i], y[i]);
                i++;
            }
        }
示例#4
0
        public void RootTest()
        {
            var c = SqRt.Root(random.GenerateRandomNumber(min, max));

            Assert.AreEqual(c, SqRt.Root(random.GenerateRandomNumber(min, max)));
        }
示例#5
0
 public dynamic Root(dynamic a)
 {
     result = SqRt.Root(a);
     return(result);
 }
示例#6
0
 public void RootDoubleTest()
 {
     Assert.AreEqual(7.6, SqRt.Root(c));
 }
示例#7
0
 public void RootTest()
 {
     Assert.AreEqual(15, SqRt.Root(a));
 }