Hypotheses tree nodes. More...
#include <hypothesis.h>
Public Member Functions | |
Hypothesis () | |
Hypothesis constructor, variable initialization. More... | |
Hypothesis (int iteration, int cluster, int status) | |
Hypothesis constructor, specification of iteration cluster and status. More... | |
string | name () |
Create hypothesis name. More... | |
string | nameUI () |
Create hypothesis name formated to the user interface. More... | |
void | setAttribute (string name, string value) |
Add a new attribute to the hypothesis, these attributes are only used in the graphviz plugin. More... | |
~Hypothesis () | |
Class destructor. More... | |
Public Attributes | |
vector< string > | _attribute_names |
Attribute names used in the graphviz representation of this hypothesis. More... | |
vector< string > | _attribute_values |
Values for the corresponding attributes. More... | |
int | _aux1 |
Auxiliary int variable, multi use, value not assured between calls. More... | |
int | _cluster |
Id of the cluster this hypothesis belongs to. More... | |
long | _id |
Main id of the hypothesis. More... | |
int | _iteration |
Iteration for this hypothesis. More... | |
int | _n_del |
Number of deleted targets. More... | |
int | _n_det |
Number of detected targets. More... | |
int | _n_fal |
Number of failed targets. More... | |
int | _n_new |
Number of new targets. More... | |
int | _n_occ |
Number of occluded targets. More... | |
long | _parent_uid |
Id of the parent hypothesis. More... | |
double | _probability |
Hypothesis probability. More... | |
double | _prod |
Probability of current target to measurement assignment. More... | |
int | _status |
Current status. More... | |
vector< TargetPtr > | _targets |
List of hypothesis targets. More... | |
long | _uid |
Unique id for all currently existing hypotheses. More... | |
Static Public Attributes | |
static long | _euid =0 |
Static extremely unique id for all hypotheses (since program start) More... | |
Friends | |
ostream & | operator<< (ostream &o, Hypothesis &h) |
Hypotheses tree nodes.
This class is used as the main node for the hypotheses tree. Each hypothesis is a set of possible targets, a group of id values and a probability associated with it.
Definition at line 50 of file hypothesis.h.
Hypothesis::Hypothesis | ( | ) |
Hypothesis constructor, variable initialization.
Definition at line 82 of file hypothesis.cpp.
Hypothesis::Hypothesis | ( | int | iteration, |
int | cluster, | ||
int | status | ||
) |
Hypothesis constructor, specification of iteration cluster and status.
iteration | of this new hypothesis |
cluster | of this new hypothesis |
status | of the hypothesis |
Definition at line 35 of file hypothesis.cpp.
Hypothesis::~Hypothesis | ( | ) |
Class destructor.
Definition at line 44 of file hypothesis.cpp.
string Hypothesis::name | ( | ) |
string Hypothesis::nameUI | ( | ) |
Create hypothesis name formated to the user interface.
Definition at line 50 of file hypothesis.cpp.
void Hypothesis::setAttribute | ( | string | name, |
string | value | ||
) |
Add a new attribute to the hypothesis, these attributes are only used in the graphviz plugin.
name | name of the new attribute |
value | value of the corresponding attribute |
Definition at line 64 of file hypothesis.cpp.
|
friend |
Definition at line 108 of file hypothesis.cpp.
vector<string> Hypothesis::_attribute_names |
Attribute names used in the graphviz representation of this hypothesis.
Definition at line 88 of file hypothesis.h.
vector<string> Hypothesis::_attribute_values |
Values for the corresponding attributes.
Definition at line 90 of file hypothesis.h.
int Hypothesis::_aux1 |
Auxiliary int variable, multi use, value not assured between calls.
Definition at line 54 of file hypothesis.h.
int Hypothesis::_cluster |
Id of the cluster this hypothesis belongs to.
Definition at line 56 of file hypothesis.h.
|
static |
Static extremely unique id for all hypotheses (since program start)
Initialization of static variables in the Mht::Node class.
Definition at line 64 of file hypothesis.h.
long Hypothesis::_id |
Main id of the hypothesis.
Definition at line 60 of file hypothesis.h.
int Hypothesis::_iteration |
Iteration for this hypothesis.
Definition at line 58 of file hypothesis.h.
int Hypothesis::_n_del |
Number of deleted targets.
Definition at line 74 of file hypothesis.h.
int Hypothesis::_n_det |
Number of detected targets.
Definition at line 70 of file hypothesis.h.
int Hypothesis::_n_fal |
Number of failed targets.
Definition at line 78 of file hypothesis.h.
int Hypothesis::_n_new |
Number of new targets.
Definition at line 76 of file hypothesis.h.
int Hypothesis::_n_occ |
Number of occluded targets.
Definition at line 72 of file hypothesis.h.
long Hypothesis::_parent_uid |
Id of the parent hypothesis.
Definition at line 85 of file hypothesis.h.
double Hypothesis::_probability |
Hypothesis probability.
Definition at line 68 of file hypothesis.h.
double Hypothesis::_prod |
Probability of current target to measurement assignment.
Definition at line 80 of file hypothesis.h.
int Hypothesis::_status |
Current status.
Definition at line 62 of file hypothesis.h.
vector<TargetPtr> Hypothesis::_targets |
List of hypothesis targets.
Definition at line 93 of file hypothesis.h.
long Hypothesis::_uid |
Unique id for all currently existing hypotheses.
Definition at line 66 of file hypothesis.h.