commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <>
Subject Re: [math] Documentation for clustering
Date Fri, 23 Aug 2013 23:00:00 GMT

On Sat, 24 Aug 2013 00:29:36 +0200, wrote:
> I just found that commons-math contains an implementation of a
> kmeans++ clustering algorithm, but I could not find any documentation
> on it except for the javadoc.

The user guide is lagging behind for many functionalities. Sorry.

> Given the javadoc, I wonder if it is possible to retrieve the actual
> clusters generated (I.e., sets of the items I input into the
> algorithm)? I only see that the cluster method returns a list of
> centroids which would give me the centers, but not the items assigned
> to each center.

In class "Cluster<T extends Clusterable>", there is a method

   public List<T> getPoints()

Could it be what you are looking for?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message