#include <cluster.h>
Inheritance diagram for fl::Agglomerate:

Public Methods | |
| Agglomerate (Comparison *comparison, float distanceLimit, int minClusters=1) | |
| Agglomerate (std::istream &stream) | |
| ~Agglomerate () | |
| virtual void | run (const std::vector< Vector< float > > &data) |
| Peform clustering on collection of points. | |
| virtual int | classify (const Vector< float > &point) |
| Determine the single best class of given point. | |
| virtual Vector< float > | distribution (const Vector< float > &point) |
| Return a probability distribution over the classes. Row number in the returned Vector corresponds to class number. | |
| virtual int | classCount () |
| Returns the number of classes. | |
| virtual Vector< float > | representative (int group) |
| Return a representative member of group. "group" has same semantics as return value of classify (); we just can't use the word "class" because it is a keyword in C++. :). | |
| virtual void | read (std::istream &stream) |
| virtual void | write (std::ostream &stream, bool withName=false) |
Public Attributes | |
| Comparison * | comparison |
| float | distanceLimit |
| The largest distance permissible between two clusters. | |
| int | minClusters |
| The target number of clusters at convergence. Result will be no smaller than this unless there are fewer input data. | |
| std::vector< ClusterAgglomerative * > | clusters |
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Returns the number of classes.
Implements fl::ClusterMethod. |
|
|
Determine the single best class of given point.
Implements fl::ClusterMethod. |
|
|
Return a probability distribution over the classes. Row number in the returned Vector corresponds to class number.
Implements fl::ClusterMethod. |
|
|
Reimplemented from fl::ClusterMethod. |
|
|
Return a representative member of group. "group" has same semantics as return value of classify (); we just can't use the word "class" because it is a keyword in C++. :).
Implements fl::ClusterMethod. |
|
|
Peform clustering on collection of points.
Implements fl::ClusterMethod. |
|
||||||||||||
|
Reimplemented from fl::ClusterMethod. |
|
|
|
|
|
|
|
|
The largest distance permissible between two clusters.
|
|
|
The target number of clusters at convergence. Result will be no smaller than this unless there are fewer input data.
|
1.2.18