Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
anomaly.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include "../anomalydetector.h"
6 #include "../queryprocessor_framework.h"
7 
8 namespace Akumuli {
9 namespace QP {
10 
11 
13  typedef std::unique_ptr<AnomalyDetectorIface> PDetector;
14 
15  enum FcastMethod {
16  SMA,
17  SMA_SKETCH,
18  EWMA,
19  EWMA_SKETCH,
20  DOUBLE_EXP_SMOOTHING,
21  DOUBLE_EXP_SMOOTHING_SKETCH,
22  HOLT_WINTERS,
23  HOLT_WINTERS_SKETCH,
24  };
25 
26  std::shared_ptr<Node> next_;
27  PDetector detector_;
28 
29  AnomalyDetector(uint32_t nhashes, uint32_t bits, double threshold, double alpha, double beta,
30  double gamma, int period, FcastMethod method, std::shared_ptr<Node> next);
31 
32  AnomalyDetector(boost::property_tree::ptree const& ptree, std::shared_ptr<Node> next);
33 
34  virtual void complete();
35 
36  virtual bool put(const aku_Sample& sample);
37 
38  virtual void set_error(aku_Status status);
39 
40  virtual int get_requirements() const;
41 };
42 }
43 } // namespace
virtual int get_requirements() const
Definition: anomaly.cpp:212
virtual bool put(const aku_Sample &sample)
Definition: anomaly.cpp:193
virtual void complete()
Complete adding values.
Definition: anomaly.cpp:189
Definition: anomaly.h:12
Definition: queryprocessor_framework.h:28