diff --git a/Analyser/Dynamic/ConfidenceCounter.cpp b/Analyser/Dynamic/ConfidenceCounter.cpp index c2ce5bbc4..16e1f3075 100644 --- a/Analyser/Dynamic/ConfidenceCounter.cpp +++ b/Analyser/Dynamic/ConfidenceCounter.cpp @@ -23,6 +23,8 @@ void ConfidenceCounter::add_miss() { } void ConfidenceCounter::add_equivocal() { - hits_++; - misses_++; + if(hits_ > misses_) { + hits_++; + misses_++; + } } diff --git a/Analyser/Dynamic/ConfidenceCounter.hpp b/Analyser/Dynamic/ConfidenceCounter.hpp index 9d424c0c5..8494e4b04 100644 --- a/Analyser/Dynamic/ConfidenceCounter.hpp +++ b/Analyser/Dynamic/ConfidenceCounter.hpp @@ -31,8 +31,8 @@ class ConfidenceCounter: public ConfidenceSource { void add_miss(); /*! - Records an event that provides no strong evidence either way — one that - could be a hit but could be a miss — pushes probability up or down towards 0.5. + Records an event that could be correct but isn't necessarily so; which can push probability + down towards 0.5, but will never push it upwards. */ void add_equivocal();