52 boost::format fm(
"H (%d-%d) %ld #%ld\n%.3f :%d");
59 boost::format fm(
"H (%d-%d) %ld #%ld");
110 o<<
"hypothesis uid: "<<h.
_uid;
120 return h1->_probability < h2->_probability;
125 return h1->_probability > h2->_probability;
130 return h1->_uid<h2->_uid;
vector< string > _attribute_names
Attribute names used in the graphviz representation of this hypothesis.
vector< string > _attribute_values
Values for the corresponding attributes.
Hypothesis class declaration.
long _uid
Unique id for all currently existing hypotheses.
long iteration
Current iteration counter, used in the naming of tree nodes.
int _iteration
Iteration for this hypothesis.
string name()
Create hypothesis name.
bool compareHypothesesByProbabilityDescending(HypothesisPtr h1, HypothesisPtr h2)
Compare two hypotheses by probability, but descending.
bool compareHypothesesByProbability(HypothesisPtr h1, HypothesisPtr h2)
Compare two hypotheses by probability.
double _prod
Probability of current target to measurement assignment.
int _n_det
Number of detected targets.
double _probability
Hypothesis probability.
boost::shared_ptr< Hypothesis > HypothesisPtr
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...
bool compareHypotheses(HypothesisPtr h1, HypothesisPtr h2)
Compare two hypotheses by uid.
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.
Hypothesis()
Hypothesis constructor, variable initialization.
int _aux1
Auxiliary int variable, multi use, value not assured between calls.
ostream & operator<<(ostream &o, Hypothesis &h)
~Hypothesis()
Class destructor.
int _n_new
Number of new targets.