Mercurial > hg > silvet
comparison src/AgentFeederPoly.h @ 190:c02db1f4680a noteagent
Debug out
author | Chris Cannam |
---|---|
date | Thu, 29 May 2014 15:18:14 +0100 |
parents | 462b165c8c0f |
children |
comparison
equal
deleted
inserted
replaced
189:3de7c871d9c8 | 190:c02db1f4680a |
---|---|
73 | 73 |
74 std::set<Hypothesis> retrieveAcceptedHypotheses() { | 74 std::set<Hypothesis> retrieveAcceptedHypotheses() { |
75 std::set<Hypothesis> hs; | 75 std::set<Hypothesis> hs; |
76 for (typename Hypotheses::const_iterator i = m_state.completed.begin(); | 76 for (typename Hypotheses::const_iterator i = m_state.completed.begin(); |
77 i != m_state.completed.end(); ++i) { | 77 i != m_state.completed.end(); ++i) { |
78 hs.insert(*i); | 78 Hypothesis h(*i); |
79 #ifdef DEBUG_FEEDER | |
80 std::cerr << "returning accepted hypothesis: strengths: "; | |
81 for (typename Hypothesis::Observations::const_iterator j = | |
82 h.getAcceptedObservations().begin(); | |
83 j != h.getAcceptedObservations().end(); ++j) { | |
84 std::cerr << j->confidence << " "; | |
85 } | |
86 std::cerr << std::endl; | |
87 #endif | |
88 hs.insert(h); | |
79 } | 89 } |
80 m_state.completed.clear(); | 90 m_state.completed.clear(); |
81 return hs; | 91 return hs; |
82 } | 92 } |
83 | 93 |