Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Phpml\Clustering\KMeans Class Reference
Inheritance diagram for Phpml\Clustering\KMeans:
Phpml\Clustering\Clusterer

Public Member Functions

 __construct (int $clustersNumber, int $initialization=self::INIT_KMEANS_PLUS_PLUS)
 
 cluster (array $samples)
 

Public Attributes

const INIT_KMEANS_PLUS_PLUS = 2
 
const INIT_RANDOM = 1
 

Member Function Documentation

◆ cluster()

Phpml\Clustering\KMeans::cluster ( array $samples)

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