pyclustering.cluster.encoder.type_encoding Class Reference

Enumeration of encoding types (index labeling, index list separation, object list separation). More...

+ Inheritance diagram for pyclustering.cluster.encoder.type_encoding:
+ Collaboration diagram for pyclustering.cluster.encoder.type_encoding:

Static Public Attributes

int CLUSTER_INDEX_LABELING = 0
 Results are represented by list of indexes and belonging to the cluster is defined by cluster index and element's position corresponds to object's position in input data, for example [0, 0, 1, 1, 1, 0]. More...
 
int CLUSTER_INDEX_LIST_SEPARATION = 1
 Results are represented by list of lists, where each list consists of object indexes from input data, for example [ [0, 1, 2], [3, 4, 5], [6, 7] ]. More...
 
int CLUSTER_OBJECT_LIST_SEPARATION = 2
 Results are represented by list of lists, where each list consists of objects from input data, for example [ [obj1, obj2], [obj3, obj4, obj5], [obj6, obj7] ]. More...
 

Detailed Description

Enumeration of encoding types (index labeling, index list separation, object list separation).

Definition at line 31 of file encoder.py.

Member Data Documentation

◆ CLUSTER_INDEX_LABELING

int pyclustering.cluster.encoder.type_encoding.CLUSTER_INDEX_LABELING = 0
static

Results are represented by list of indexes and belonging to the cluster is defined by cluster index and element's position corresponds to object's position in input data, for example [0, 0, 1, 1, 1, 0].

Definition at line 38 of file encoder.py.

◆ CLUSTER_INDEX_LIST_SEPARATION

int pyclustering.cluster.encoder.type_encoding.CLUSTER_INDEX_LIST_SEPARATION = 1
static

Results are represented by list of lists, where each list consists of object indexes from input data, for example [ [0, 1, 2], [3, 4, 5], [6, 7] ].

Definition at line 41 of file encoder.py.

◆ CLUSTER_OBJECT_LIST_SEPARATION

int pyclustering.cluster.encoder.type_encoding.CLUSTER_OBJECT_LIST_SEPARATION = 2
static

Results are represented by list of lists, where each list consists of objects from input data, for example [ [obj1, obj2], [obj3, obj4, obj5], [obj6, obj7] ].

Definition at line 44 of file encoder.py.


The documentation for this class was generated from the following file: