PHP Class Phpml\Clustering\KMeans

Inheritance: implements Phpml\Clustering\Clusterer
Exibir arquivo Open project: php-ai/php-ml Class Usage Examples

Public Methods

Method Description
__construct ( integer $clustersNumber, integer $initialization = self::INIT_KMEANS_PLUS_PLUS )
cluster ( array $samples ) : array

Method Details

__construct() public method

public __construct ( integer $clustersNumber, integer $initialization = self::INIT_KMEANS_PLUS_PLUS )
$clustersNumber integer
$initialization integer

cluster() public method

public cluster ( array $samples ) : array
$samples array
return array