public static KMeansClustering setup(int clusterCount, int maxIterationCount, Distance distanceFunction,
                    boolean inverse) {
        ClusteringStrategy clusteringStrategy =
                        FixedClusterCountStrategy.setup(clusterCount, distanceFunction, inverse);
        clusteringStrategy.endWhenIterationCountEquals(maxIterationCount);
        return new KMeansClustering(clusteringStrategy);
    }
public static KMeansClustering setup ( int clusterCount , int maxIterationCount , Distance distanceFunction , boolean inverse ) { ClusteringStrategy clusteringStrategy = FixedClusterCountStrategy . setup ( clusterCount , distanceFunction , inverse ) ; clusteringStrategy . endWhenIterationCountEquals ( maxIterationCount ) ; return new KMeansClustering ( clusteringStrategy ) ; }
Setup a kmeans instance
@param clusterCount the number of clusters
@param maxIterationCount the max number of iterations
to run kmeans
@param distanceFunction the distance function to use for grouping
@return