1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-25 17:29:40 +00:00

Changes equivocal semantics.

This commit is contained in:
Thomas Harte 2018-02-11 20:32:21 -05:00
parent 9960121b08
commit dcf313a833
2 changed files with 6 additions and 4 deletions

View File

@ -23,6 +23,8 @@ void ConfidenceCounter::add_miss() {
}
void ConfidenceCounter::add_equivocal() {
hits_++;
misses_++;
if(hits_ > misses_) {
hits_++;
misses_++;
}
}

View File

@ -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();