PHP Class Phpml\Clustering\DBSCAN

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

Méthodes publiques

Méthode Description
__construct ( float $epsilon = 0.5, integer $minSamples = 3, Phpml\Math\Distance $distanceMetric = null )
cluster ( array $samples ) : array

Private Methods

Méthode Description
expandCluster ( array $samples, array &$visited ) : array
getSamplesInRegion ( array $localSample, array $samples ) : array

Method Details

__construct() public méthode

public __construct ( float $epsilon = 0.5, integer $minSamples = 3, Phpml\Math\Distance $distanceMetric = null )
$epsilon float
$minSamples integer
$distanceMetric Phpml\Math\Distance

cluster() public méthode

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