Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: