Documentation of 'org.neuroph.nnet.learning.kmeans.KMeansClustering' Java class
KMeansClustering
org.neuroph.nnet.learning.kmeans

Class KMeansClustering



  • public class KMeansClustering
    extends java.lang.Object
    1. Pick an initial set of K centroids (this can be random or any other means) 2. For each data point, assign it to the member of the closest centroid according to the given distance function 3. Adjust the centroid position as the mean of all its assigned member data points. Go back to (2) until the membership isn't change and centroid position is stable.
    • Constructor Detail

      • KMeansClustering

        public KMeansClustering(DataSet dataSet)
      • KMeansClustering

        public KMeansClustering(DataSet dataSet,
                                int numberOfClusters)
    • Method Detail

      • initClusters

        public void initClusters()
      • doClustering

        public void doClustering()
      • getDataSet

        public DataSet getDataSet()
      • setDataSet

        public void setDataSet(DataSet vectors)
      • setNumberOfClusters

        public void setNumberOfClusters(int numberOfClusters)
      • getClusters

        public Cluster[] getClusters()
      • getLog

        public java.lang.String getLog()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.