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); }
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)); }