Ocean
|
This class implements the management of clusters. More...
#include <Clustering.h>
Public Member Functions | |
Segmentation ()=default | |
Creates a new segmentation object. | |
Segmentation (const Clusters &clusters) | |
Creates a new segmentation object. | |
Segmentation (Segmentation &&segmentation) noexcept | |
Move constructor. | |
const Clusters & | clusters () const |
Returns the clusters defined by this segmentation. | |
float | averageClusterSize () const |
Returns the average cluster size. | |
size_t | maximalClusterSize () const |
Returns the maximal cluster size of this segmentation. | |
Segmentation & | operator= (Segmentation &&right) noexcept |
Move operator. | |
Static Public Member Functions | |
static bool | compareMaximalClusterSize (const Segmentation &first, const Segmentation &second) |
Compares two segmentation regarding to the maximal cluster size. | |
Private Attributes | |
Clusters | clusters_ |
Clusters of this segmentation object. | |
float | averageClusterSize_ = -1.0f |
Average cluster size of this segmentation. | |
size_t | maximalClusterSize_ = 0 |
Maximal cluster size of this segmentation. | |
This class implements the management of clusters.
|
default |
Creates a new segmentation object.
|
explicit |
Creates a new segmentation object.
clusters | The clusters defining the segmentation |
|
inlinenoexcept |
Move constructor.
segmentation | The segmentation to be moved |
|
inline |
Returns the average cluster size.
|
inline |
Returns the clusters defined by this segmentation.
|
inlinestatic |
Compares two segmentation regarding to the maximal cluster size.
first | The first segmentation object |
second | the second segmentation object |
|
inline |
Returns the maximal cluster size of this segmentation.
|
inlinenoexcept |
Move operator.
right | The right segmentation to assign |
|
private |
Average cluster size of this segmentation.
|
private |
Clusters of this segmentation object.
|
private |
Maximal cluster size of this segmentation.