 
      
    
       
      
    
       
      
    
       
      
    
       
      
    
       
      
    
      Clusters the input data according to given centroids
Clusters the input data according to given centroids
list of instances
coordinates of the centroids
 
      
    
       
      
    
       
      
    
       
      
    
      Calculates the geometrical centers of the given clusters
Calculates the geometrical centers of the given clusters
list of instances
list of cluster association
the total number of clusters
 
      
    
       
      
    
      Calculates the loss of the current clustering
Calculates the loss of the current clustering
list of instances
list of cluster association
coordinates of the centroids
 
      
    
       
      
    
       
      
    
       
      
    
       
      
    
       
      
    
       
      
    
       
      
    
       
      
    
       
      
    
      
Provides functions for the k-means clustering algorithm