32 #ifndef _HYPOTHESIS_H_
33 #define _HYPOTHESIS_H_
39 typedef boost::shared_ptr<Target>
TargetPtr;
friend ostream & operator<<(ostream &o, Hypothesis &h)
vector< string > _attribute_names
Attribute names used in the graphviz representation of this hypothesis.
vector< string > _attribute_values
Values for the corresponding attributes.
long _uid
Unique id for all currently existing hypotheses.
long iteration
Current iteration counter, used in the naming of tree nodes.
bool compareHypotheses(HypothesisPtr h1, HypothesisPtr h2)
Compare two hypotheses by uid.
int _iteration
Iteration for this hypothesis.
string name()
Create hypothesis name.
double _prod
Probability of current target to measurement assignment.
int _n_det
Number of detected targets.
bool compareHypothesesByProbability(HypothesisPtr h1, HypothesisPtr h2)
Compare two hypotheses by probability.
double _probability
Hypothesis probability.
boost::shared_ptr< Hypothesis > HypothesisPtr
hypotheses_status
Possible hypothesis status.
int _status
Current status.
int _n_fal
Number of failed targets.
vector< TargetPtr > _targets
List of hypothesis targets.
int _n_del
Number of deleted targets.
int _n_occ
Number of occluded targets.
void setAttribute(string name, string value)
Add a new attribute to the hypothesis, these attributes are only used in the graphviz plugin...
static long _euid
Static extremely unique id for all hypotheses (since program start)
long _id
Main id of the hypothesis.
long _parent_uid
Id of the parent hypothesis.
int _cluster
Id of the cluster this hypothesis belongs to.
string nameUI()
Create hypothesis name formated to the user interface.
bool compareHypothesesByProbabilityDescending(HypothesisPtr h1, HypothesisPtr h2)
Compare two hypotheses by probability, but descending.
Hypothesis()
Hypothesis constructor, variable initialization.
boost::shared_ptr< Target > TargetPtr
Shared pointer to the Target class.
Target class declaration.
int _aux1
Auxiliary int variable, multi use, value not assured between calls.
~Hypothesis()
Class destructor.
boost::shared_ptr< Hypothesis > HypothesisPtr
Shared pointer to the Hypothesis class.
int _n_new
Number of new targets.