Go to the documentation of this file.00001
00059
00060
00061
00062
00063
00064
00065
00066 #ifndef HYPOTHESIS_H_
00067 #define HYPOTHESIS_H_
00068
00069
00070 namespace Slam
00071 {
00072
00073 template<typename NODE>
00074 class Hypothesis
00075 {
00076 typedef typename NODE::OBJCTXT OBJCTXT;
00077 typedef typename OBJCTXT::DOF6 DOF6;
00078
00079 struct SHYPO
00080 {
00081 typename DOF6::TYPE error_rate_, success_rate_;
00082 std::vector<SWAY<NODE> > cons_;
00083 };
00084
00085 typedef std::map<typename NODE::Ptr,SHYPO> HIST;
00086
00087 HIST history_;
00088 public:
00089
00090 typename DOF6::TYPE getOverallScore() const {
00091 typename DOF6::TYPE mx=0;
00092
00093 for(typename HIST::const_iterator it=history_.begin(); it!=history_.end(); ++it)
00094 {
00095 mx = std::max(mx,it->error_rate_);
00096 }
00097
00098 return mx;
00099 }
00100 };
00101
00102 }
00103
00104
00105 #endif