INNER CODE UNIT · Python

append_clusters

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

    def append_clusters(self, clusters, data=None, canvas=0, marker='.', markersize=None):
        """!
        @brief Appends list of cluster to canvas for drawing.
        
        @param[in] clusters (array_like): List of clusters where each cluster 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 clusters.
        @param[in] marker (string): Marker that is used for displaying objects from clusters on the canvas.
        @param[in] markersize (uint): Size of marker.

        """
        
        for cluster in clusters:
            self.append_cluster(cluster, data, canvas, marker, markersize)
    
    
    def set_canvas_title(self, text, canvas=0):
        """!

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…