Ejemplo n.º 1
0
        public static IList <float> getCategoryRatios(ICollection <int> catCounts)
        {
            IList <float> ratios = new List <float>();
            int           n      = BuffUtils.sum(catCounts);

            foreach (int count in catCounts)
            {
                float probCat = count / (float)n;
                ratios.Add(probCat);
            }
            return(ratios);
        }