views:

433

answers:

1

Hi all, I need to calculate for grouping objects according to their size. I got k-means algorithms in java which calculate mostly for classifying according to their two or more features and the results are not satisfy for me.I only want to calculate for grouping objects based on one feature.Pseudocode or code would be helpful, too. Thanks u all for helping.

+1  A: 

"Programming Collective Intelligence" has a nice chapter on grouping algorithms, including K-mean. The code is all Python, so you'll have to port it over. Wonderful book - highly recommended.

duffymo