INNER CODE UNIT · Python

append_cluster

annoviko/pyclustering · pyclustering/cluster/__init__.py:515

    def append_cluster(self, cluster, data=None, canvas=0, marker='.', markersize=None, color=None):
        """!
        @brief Appends cluster to canvas for drawing.
        
        @param[in] cluster (array_like): cluster that may consist of indexes of objects from the data or object itself.
        @param[in] data (array_like): If defines that each element of cluster is considered as a index of object from the data.
        @param[in] canvas (uint): Number of canvas that should be used for displaying cluster.
        @param[in] marker (string): Marker that is used for displaying objects from cluster on the canvas.
        @param[in] markersize (uint): Size of marker.
        @param[in] color (string): Color of marker.
        
        @return Returns index of cluster descriptor on the canvas.
        
        """
        
        if len(cluster) == 0:
            return
        

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…