public void VarianceIntTest()
        {
            int[]  values   = { 2, 4, 6, 8 };
            double variance = findVariance.Variance(values);

            Assert.AreEqual(5, Helpers.Rounding.RoundFiveDecimals(variance));
        }
        public static dynamic StandardDeviation(dynamic arrayA)
        {
            dynamic theVariance = FindVariance.Variance(arrayA);

            result = Helpers.Rounding.RoundTo2(Math.Sqrt(theVariance));
            return(result);
        }
예제 #3
0
 public double Variance(dynamic values)
 {
     return(var.Variance(values));
 }