Hypotheses cluster class. More...
#include <cluster.h>
Public Member Functions | |
Cluster () | |
Cluster constructor, variable initialization. | |
bool | isEmpty () |
Check if the cluster is a candidate for deletion. | |
~Cluster () | |
Cluster destructor, no task. | |
Public Attributes | |
vector< HypothesisPtr > | assigned_hypotheses |
Set of hypotheses belonging to the cluster. | |
vector< MeasurementPtr > | assigned_measurements |
Measurements assigned to this cluster, these measurements are in conflict with the cluster targets. | |
long | id |
Id of the current cluster. | |
Friends | |
ostream & | operator<< (ostream &o, Cluster &c) |
Print function. |
Hypotheses cluster class.
This class contains the representation of a single hypotheses cluster. The cluster contains a set of associated measurements (assigned_measurements) and a set of assigned hypotheses (assigned_hypotheses). These two sets constitute the ambiguity problem and will be solved together, creating associations between the targets in the hypotheses and the measurements.
Definition at line 55 of file cluster.h.
Cluster::Cluster | ( | ) |
Cluster constructor, variable initialization.
Definition at line 34 of file cluster.cpp.
Cluster::~Cluster | ( | ) |
Cluster destructor, no task.
Definition at line 39 of file cluster.cpp.
bool Cluster::isEmpty | ( | ) |
Check if the cluster is a candidate for deletion.
Tests the number of hypotheses and their status. If there are non hypotheses or all hypotheses are dead this cluster is removed.
Definition at line 46 of file cluster.cpp.
ostream& operator<< | ( | ostream & | o, | |
Cluster & | c | |||
) | [friend] |
Print function.
Definition at line 63 of file cluster.cpp.
long Cluster::id |