Class to represents a Cluster which contains Points and Centroid of the Cluster.
More...
Class to represents a Cluster which contains Points and Centroid of the Cluster.
◆ Cluster() [1/3]
Xapian::Cluster::Cluster |
( |
const Cluster & |
other | ) |
|
Copying is allowed.
The internals are reference counted, so copying is cheap.
- Parameters
-
◆ Cluster() [2/3]
Xapian::Cluster::Cluster |
( |
Cluster && |
other | ) |
|
Move constructor.
- Parameters
-
◆ Cluster() [3/3]
Xapian::Cluster::Cluster |
( |
const Centroid & |
centroid | ) |
|
|
explicit |
Constructor.
- Parameters
-
centroid | The centroid of the cluster object is assigned to 'centroid' |
◆ add_point()
void Xapian::Cluster::add_point |
( |
const Point & |
point | ) |
|
Add a document to the Cluster.
- Parameters
-
point | The Point object representing the document which needs to be added to the cluster |
◆ operator=() [1/2]
Move assignment operator.
- Parameters
-
◆ operator=() [2/2]
Assignment is allowed.
The internals are reference counted, so assignment is cheap.
- Parameters
-
◆ set_centroid()
void Xapian::Cluster::set_centroid |
( |
const Centroid & |
centroid | ) |
|
Set the centroid of the Cluster to 'centroid'.
- Parameters
-
The documentation for this class was generated from the following file: