class Hierarchical extends Clusterer
This class implements hierarchical agglomerative clustering.
It receives a MergeStrategy as a parameter and a Distance metric.
Methods
array |
cluster(TrainingSet $documents, FeatureFactoryInterface $ff)
Group the documents together |
|
__construct(MergeStrategyInterface $ms, DistanceInterface $d) | ||
static array |
dendrogramToClusters(array $tree, integer $NC)
Flatten a dendrogram to an almost specific number of clusters (the closest power of 2 larger than $NC) |
Details
at line 32
public array
cluster(TrainingSet $documents, FeatureFactoryInterface $ff)
Group the documents together
at line 19
public
__construct(MergeStrategyInterface $ms, DistanceInterface $d)
at line 68
static public array
dendrogramToClusters(array $tree, integer $NC)
Flatten a dendrogram to an almost specific number of clusters (the closest power of 2 larger than $NC)