diff options
Diffstat (limited to 'ml/Dimension.cc')
-rw-r--r-- | ml/Dimension.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ml/Dimension.cc b/ml/Dimension.cc index 39e74a065d..bf34abb72f 100644 --- a/ml/Dimension.cc +++ b/ml/Dimension.cc @@ -167,16 +167,6 @@ bool Dimension::predict(CalculatedNumber Value, bool Exists) { return true; } -void Dimension::updateAnomalyBitCounter(RRDSET *RS, unsigned Elapsed, bool IsAnomalous) { - AnomalyBitCounter += IsAnomalous; - - if (Elapsed == Cfg.DBEngineAnomalyRateEvery) { - double AR = static_cast<double>(AnomalyBitCounter) / Cfg.DBEngineAnomalyRateEvery; - rrddim_set_by_pointer(RS, getAnomalyRateRD(), AR * 1000); - AnomalyBitCounter = 0; - } -} - std::array<KMeans, 1> Dimension::getModels() { std::unique_lock<std::mutex> Lock(Mutex); return Models; |