public void StandardDTest() { StatCalculator statCalc = new StatCalculator(); int[] values = { 1, 2, 3 }; //dynamic values = statCalc.Squarea(0.67); var standDev = statCalc.StandardD(values); Assert.AreEqual(SuareRoot.Root(0.67), standDev); }
public static dynamic StandardD(dynamic d) { //var sum = Addition.Sum(array); var a = StatOperations.Variance(d); //var valueCount = Helpers.Array.Length(array); dynamic results = SuareRoot.Root(a); //result = Helpers.Rounding.RoundOffTwoPlaces(results); return(results); }
public dynamic Squared(dynamic a) { result = SuareRoot.Root(a); return(result); }