Пример #1
0
        public Dictionary <string, double> CalculateAvarages()
        {
            Dictionary <string, double> ret = new Dictionary <string, double>();

            foreach (var kvp in this.BenchmarkSums)
            {
                string        algo_id = kvp.Key;
                SpeedSumCount ssc     = kvp.Value;
                ret[algo_id] = ssc.GetAvarage();
            }
            return(ret);
        }
Пример #2
0
        public Dictionary <string, List <double> > CalculateAvarages()
        {
            Dictionary <string, List <double> > ret = new Dictionary <string, List <double> >();

            foreach (var kvp in this.BenchmarkSums)
            {
                string        algo_id = kvp.Key;
                SpeedSumCount ssc     = kvp.Value;
                ret[algo_id] = new List <double> {
                    ssc.GetAvarage(), ssc.GetSecondaryAverage()
                };
            }
            return(ret);
        }