Example #1
0
        public static StatsD Create(List <double> inputs)
        {
            if (uNet.IsNullOrEmpty(inputs))
            {
                return(null);
            }
            var stat = new StatsD();

            stat.Vals = new List <double>(inputs);
            if (!stat.UpdateStats())
            {
                return(null);
            }
            return(stat);
        }
Example #2
0
        private static void CalculateStatsAndCopyToArray(double[] nbs, List <double> vals)
        {
            var stat = StatsD.Create(vals);

            nbs[0] = stat.Min; nbs[1] = stat.Avg; nbs[2] = stat.Max; nbs[3] = stat.Std; //nbs[4] = stat.Var;
        }