sign in | register

Blogoforum Blogoforum - Tag Cloud Makeup Thanks to Automatthias

recent > blogoforum > tagging > tagcloud > math > logarithm, programming and size

[show older messages in this discussion]

Tag Cloud Makeup Thanks to Automatthias

Now that was valuable! I slightly modified the formula to take in account min of values like int((pmax - pmin) * (log(x - vmin)) / (log(vmax - vmin)) + pmin) and filter out situations like log(0) and log(1) . Take a look at Blogoforum clouds now!

If you can, please tell us how did you get to that formula. Thanks Automatthias!
by dkrukovsky
September 18, 2006 3:14 AM
+ add to your Readings [?]
- Reply

RE: Tag Cloud Makeup Thanks to Automatthias

Yeah, it does look better now!

As for the minimum value -- yes, you're right. I've been tackling this equation for quite a long time, and this was what I've ended up with. I had a reason to remove the minimum value, but I can'r remember anymore what it was. I think it was just something about the look of the tag list in my case.

The log(0) and log(1) situations are present by default, I thought about removing them by shifting min and max a little bit:

vmin = min(values) - 0.5
vmax = max(values) + 0.5

But finally I just added some test against the 0 and 1 values and handled them by assigning pmin and pmax.

I'm glad I could help here.

by Automatthias
September 18, 2006 7:29 AM
in
- Reply

people think this discussion is about

wrong? assign your keywords [?]
Google

Explore Blogoforum - The Better Forum Experiment

Blogoforum is looking for UI Designer.

Tell the World

Blogoforum will become more useful as its user base grows. If you think the idea is interesting, bookmark it on del.icio.us and tell your friends.