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:
parent
9960121b08
commit
dcf313a833
@ -23,6 +23,8 @@ void ConfidenceCounter::add_miss() {
|
||||
}
|
||||
|
||||
void ConfidenceCounter::add_equivocal() {
|
||||
hits_++;
|
||||
misses_++;
|
||||
if(hits_ > misses_) {
|
||||
hits_++;
|
||||
misses_++;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user