def process(self):
if len(self.__pointer_data[<NUM_LIT:0>]) != len(self.__centers[<NUM_LIT:0>]):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if self.__ccore is True:<EOL><INDENT>self.__process_by_ccore()<EOL><DEDENT>else:<EOL><INDENT>self.__process_by_python()<EOL><DEDENT>return self<EOL>
!
        @brief Performs cluster analysis in line with rules of K-Means algorithm.

        @return (kmeans) Returns itself (K-Means instance).

        @remark Results of clustering can be obtained using corresponding get methods.

        @see get_clusters()
        @see get_centers()