INNER CODE UNIT · Python
__init__
annoviko/pyclustering · pyclustering/cluster/__init__.py:28
def __init__(self, cluster, data, marker, markersize, color):
"""!
@brief Constructor of cluster representation on the canvas.
@param[in] cluster (array_like): Single cluster that consists of objects or indexes from data.
@param[in] data (array_like): Objects that should be displayed, can be None if clusters consist of objects instead of indexes.
@param[in] marker (string): Type of marker that is used for drawing objects.
@param[in] markersize (uint): Size of marker that is used for drawing objects.
@param[in] color (string): Color of the marker that is used for drawing objects.
"""
## Cluster that may consist of objects or indexes of objects from data.
self.cluster = cluster
## Data where objects are stored. It can be None if clusters consist of objects instead of indexes.
self.data = data
## Marker that is used for drawing objects.