PHP Class Phpml\Clustering\KMeans

Inheritance: implements Phpml\Clustering\Clusterer
Afficher le fichier Open project: php-ai/php-ml Class Usage Examples

Méthodes publiques

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

Method Details

__construct() public méthode

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

cluster() public méthode

public cluster ( array $samples ) : array
$samples array
Résultat array