class_docstr: !
  @brief   Class represents a simple clustering algorithm based on the self-organized feature map.
  @details This algorithm uses amount of clusters that should be allocated as a size of SOM map. Captured
             objects by neurons are considered as clusters. The algorithm is designed to process data with Gaussian
             distribution that has spherical forms.
  
  Example:
  @code
      from pyclustering.cluster import cluster_visualizer
      from pyclustering.cluster.somsc import somsc
      from pyclustering.samples.definitions import FCPS_SAMPLES
      from pyclustering.utils import read_sample
  
      # Load list of points for cluster analysis
      sample = read_sample(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS)
  
      # Create instance of SOM-SC algorithm to allocated two clusters
      somsc_instance = somsc(sample, 2)
  
      # Run cluster analysis and obtain results
      somsc_instance.process()
      clusters = somsc_instance.get_clusters()
  
      # Visualize clustering results.
      visualizer = cluster_visualizer()
      visualizer.append_clusters(clusters, sample)
      visualizer.show()
  @endcode
class_docstr_tok: ["!","@","brief","Class","represents","a","simple","clustering","algorithm","based","on","the","self-organized","feature","map",".","@","details","This","algorithm","uses","amount","of","clusters","that","should","be","allocated","as","a","size","of","SOM","map",".","Captured","objects","by","neurons","are","considered","as","clusters",".","The","algorithm","is","designed","to","process","data","with","Gaussian","distribution","that","has","spherical","forms",".","Example",":","@","code","from","pyclustering.cluster","import","cluster_visualizer","from","pyclustering.cluster.somsc","import","somsc","from","pyclustering.samples.definitions","import","FCPS_SAMPLES","from","pyclustering.utils","import","read_sample","#","Load","list","of","points","for","cluster","analysis","sample","=","read_sample","(","FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS",")","#","Create","instance","of","SOM-SC","algorithm","to","allocated","two","clusters","somsc_instance","=","somsc","(","sample",",","2",")","#","Run","cluster","analysis","and","obtain","results","somsc_instance.process","(",")","clusters","=","somsc_instance.get_clusters","(",")","#","Visualize","clustering","results",".","visualizer","=","cluster_visualizer","(",")","visualizer.append_clusters","(","clusters",",","sample",")","visualizer.show","(",")","@","endcode"]
docstr: !
  @brief Returns list of allocated clusters, each cluster contains indexes of objects in list of data.
  
  @see process()
docstr_tok: ["!","@","brief","Returns","list","of","allocated","clusters",",","each","cluster","contains","indexes","of","objects","in","list","of","data",".","@","see","process","(",")"]
code: def get_clusters(self):
      """!
      @brief Returns list of allocated clusters, each cluster contains indexes of objects in list of data.
  
      @see process()
  
      """
  
      return self.__network.capture_objects
  
file_path: pyclustering/pyclustering/cluster/somsc.py
imports: from pyclustering.core.wrapper import ccore_library
  from pyclustering.cluster.encoder import type_encoding
  from pyclustering.nnet.som import som, som_parameters
  from pyclustering.nnet.som import type_conn
label_desc: Use image node_id 4 for calling the somsc obj's underlying member method code with example usage: obj.get_clusters() and returns: self