<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：关于TagCloud显示算法的讨论</title>
	<atom:link href="http://tech.idv2.com/2006/10/03/tagcloud-algorithm/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.idv2.com/2006/10/03/tagcloud-algorithm/</link>
	<description>关注Web开发技术，关注Internet。</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:30:30 +0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：charlee</title>
		<link>http://tech.idv2.com/2006/10/03/tagcloud-algorithm/comment-page-1/#comment-10953</link>
		<dc:creator>charlee</dc:creator>
		<pubDate>Sun, 21 Sep 2008 12:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://charlee.itbdns.com/tech/archives/183.html#comment-10953</guid>
		<description>谢谢。我发现这个算法确实有点问题了。似乎是从最一开始的四则运算就有问题。

试试这样行不行？

lvl = (lgn - lgNmin) / (lgNmax - lgNmin) * (Lmax-Lmin) + Lmin</description>
		<content:encoded><![CDATA[<p>谢谢。我发现这个算法确实有点问题了。似乎是从最一开始的四则运算就有问题。</p>
<p>试试这样行不行？</p>
<p>lvl = (lgn &#8211; lgNmin) / (lgNmax &#8211; lgNmin) * (Lmax-Lmin) + Lmin</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：.问号鱼</title>
		<link>http://tech.idv2.com/2006/10/03/tagcloud-algorithm/comment-page-1/#comment-10947</link>
		<dc:creator>.问号鱼</dc:creator>
		<pubDate>Sat, 20 Sep 2008 21:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://charlee.itbdns.com/tech/archives/183.html#comment-10947</guid>
		<description>站长好，我用了很久你这篇文章中提到的 Tag 显示算法，但是今天发现一个小问题，某些时候产生的 level 值可能会超过预设的最大 level 值，以文中的例子，如果 Nmax = 3，Nmin = 2，此时算出来的 level 就是 log(3) / (log(3)-log(2)) * 9 + 1 = 25.4 &gt; 10 了。因此或许应该在得到 level 后再做判断，如果大于最大 level 值，则再除以它。</description>
		<content:encoded><![CDATA[<p>站长好，我用了很久你这篇文章中提到的 Tag 显示算法，但是今天发现一个小问题，某些时候产生的 level 值可能会超过预设的最大 level 值，以文中的例子，如果 Nmax = 3，Nmin = 2，此时算出来的 level 就是 log(3) / (log(3)-log(2)) * 9 + 1 = 25.4 &gt; 10 了。因此或许应该在得到 level 后再做判断，如果大于最大 level 值，则再除以它。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
