1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Integrates the static and nascent dynamic analyser namespaces.

This commit is contained in:
Thomas Harte
2018-01-24 21:48:44 -05:00
parent 622a04aec8
commit 21efb32b6f
68 changed files with 612 additions and 539 deletions
+28
View File
@@ -0,0 +1,28 @@
//
// ConfidenceCounter.cpp
// Clock Signal
//
// Created by Thomas Harte on 21/01/2018.
// Copyright © 2018 Thomas Harte. All rights reserved.
//
#include "ConfidenceCounter.hpp"
using namespace DynamicAnalyser;
float ConfidenceCounter::get_probability() {
return static_cast<float>(hits_) / static_cast<float>(hits_ + misses_);
}
void ConfidenceCounter::add_hit() {
hits_++;
}
void ConfidenceCounter::add_miss() {
misses_++;
}
void ConfidenceCounter::add_equivocal() {
hits_++;
misses_++;
}