|
xapian-core
1.5.0_git3738
|
Class for storing the results returned by the Clusterer. More...
Public Member Functions | |
| ClusterSet (const ClusterSet &other) | |
| Copying is allowed. More... | |
| ClusterSet & | operator= (const ClusterSet &other) |
| Assignment is allowed. More... | |
| ClusterSet (ClusterSet &&other) | |
| Move constructor. More... | |
| ClusterSet & | operator= (ClusterSet &&other) |
| Move assignment operator. More... | |
| ClusterSet () | |
| Default constructor. | |
| ~ClusterSet () | |
| Destructor. | |
| void | add_cluster (const Cluster &cluster) |
| Add a cluster to the ClusterSet. More... | |
| void | add_to_cluster (const Point &point, unsigned int index) |
| Add the point to the cluster at position 'index'. More... | |
| Xapian::doccount | size () const |
| Return the number of clusters. | |
| Cluster & | operator[] (Xapian::doccount i) |
| Return the cluster at index 'i'. | |
| const Cluster & | operator[] (Xapian::doccount i) const |
| Return the cluster at index 'i'. | |
| void | clear_clusters () |
| Clear all the clusters in the ClusterSet. | |
| void | recalculate_centroids () |
| Recalculate the centroid for all the clusters in the ClusterSet. | |
Class for storing the results returned by the Clusterer.
| Xapian::ClusterSet::ClusterSet | ( | const ClusterSet & | other | ) |
Copying is allowed.
The internals are reference counted, so copying is cheap.
| other | The object to copy. |
| Xapian::ClusterSet::ClusterSet | ( | ClusterSet && | other | ) |
Move constructor.
| other | The object to move. |
| void Xapian::ClusterSet::add_cluster | ( | const Cluster & | cluster | ) |
Add a cluster to the ClusterSet.
| cluster | Cluster object which is to be added to the ClusterSet |
| void Xapian::ClusterSet::add_to_cluster | ( | const Point & | point, |
| unsigned int | index | ||
| ) |
Add the point to the cluster at position 'index'.
| point | Point object which needs to be added to a Cluster within the ClusterSet |
| index | Index of the Cluster within the ClusterSet to which the Point is to be added |
| ClusterSet& Xapian::ClusterSet::operator= | ( | const ClusterSet & | other | ) |
Assignment is allowed.
The internals are reference counted, so assignment is cheap.
| other | The object to copy. |
| ClusterSet& Xapian::ClusterSet::operator= | ( | ClusterSet && | other | ) |
Move assignment operator.
| other | The object to move. |