예제 #1
0
        public int GetFontSize(BlogPostTagModel blogPostTag)
        {
            double mean = 0;
            var itemWeights = new List<double>();
            foreach (var tag in Tags)
                itemWeights.Add(tag.BlogPostCount);
            double stdDev = StdDev(itemWeights, out mean);

            return GetFontSize(blogPostTag.BlogPostCount, mean, stdDev);
        }
예제 #2
0
        public int GetFontSize(BlogPostTagModel blogPostTag)
        {
            double mean        = 0;
            var    itemWeights = new List <double>();

            foreach (var tag in Tags)
            {
                itemWeights.Add(tag.BlogPostCount);
            }
            double stdDev = StdDev(itemWeights, out mean);

            return(GetFontSize(blogPostTag.BlogPostCount, mean, stdDev));
        }