public static dynamic StandardDev(dynamic values)
        {
            var mean     = StatOperations.Mean(values);
            var variance = Variance.Variances(values, mean);
            var standiv  = Operations.Squarerooting.Squareroot(variance);

            //var valueCount = Helpers.Array.ArrayLength(values);

            return(standiv); // to come and include the actual variable
        }
Ejemplo n.º 2
0
 static public decimal findSD(int[] nums)
 {
     return(Convert.ToDecimal(Math.Round(Radical.rootAns(Variance.findVariance(nums), 2), 7)));
 }