Data generator provides services to generate data with clusters with normal distribution. More...
Public Member Functions | |
def | __init__ (self, amount_clusters, dimension, cluster_sizes, cluster_centers=None, cluster_width=1.0) |
Constructs data generator for generating data-sets. More... | |
def | generate (self) |
Generates data in line with generator parameters. | |
Data generator provides services to generate data with clusters with normal distribution.
Definition at line 31 of file generator.py.
def pyclustering.cluster.generator.data_generator.__init__ | ( | self, | |
amount_clusters, | |||
dimension, | |||
cluster_sizes, | |||
cluster_centers = None , |
|||
cluster_width = 1.0 |
|||
) |
Constructs data generator for generating data-sets.
[in] | amount_clusters | (uint): Amount of clusters that should be generated. |
[in] | dimension | (uint): Dimension of each generated point. |
[in] | cluster_sizes | (uint|array_like): Size of each cluster. In case of 'array_like' input clusters with corresponding sizes are generated. |
[in] | cluster_centers | (array_like): Optional parameter that defines cluster centers (means). |
[in] | cluster_width | (uint|array_like): Optional parameter that defines cluster width (standard deviation). In case of 'array_like' input each cluster has own standard deviation. |
Definition at line 37 of file generator.py.