public static double StandDev(dynamic values) { double variance = StatVariance.Variance(values); double standDev = SqRt.Root(variance); return(standDev); }
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++; } }
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++; } }
public void RootTest() { var c = SqRt.Root(random.GenerateRandomNumber(min, max)); Assert.AreEqual(c, SqRt.Root(random.GenerateRandomNumber(min, max))); }
public dynamic Root(dynamic a) { result = SqRt.Root(a); return(result); }
public void RootDoubleTest() { Assert.AreEqual(7.6, SqRt.Root(c)); }
public void RootTest() { Assert.AreEqual(15, SqRt.Root(a)); }