An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
ExampleSet exampleSet = null; // load your data here Operator kMeans = OperatorService.createOperator(KMeans.class); CentroidBasedClusterModel clusterModel = (CentroidBasedClusterModel) kMeans.apply(new IOContainer(exampleSet)); for (int i = 0; i < clusterModel.getNumberOfClusters(); i++) { double[] location = clusterModel.getCentroid(i); // do whatever you want with the centroid }