in reply to Grouping numbers

It sounds like you may want to use K-means clustering (or a variant thereof). Algorithm::Cluster has a number of clustering routines, including K-means. I haven't used it, but it might be a good place to start.

HTH

Replies are listed 'Best First'.
Re^2: Grouping numbers
by vkleinbb (Initiate) on Jul 12, 2006 at 06:27 UTC
    Hmm, bobf, that's a very nice reference, but what he describes fits the QT-clust algorithm described just below much better than the K-means method. It's distinctly the threshold criterion he's using, and there's no fixed number of clusters.