Esempio n. 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);
        }
Esempio n. 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));
        }