Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Public Attributes | List of all members
Akumuli::QP::AnomalyDetector Struct Reference
Inheritance diagram for Akumuli::QP::AnomalyDetector:
Akumuli::QP::Node

Public Types

enum  FcastMethod {
  SMA, SMA_SKETCH, EWMA, EWMA_SKETCH,
  DOUBLE_EXP_SMOOTHING, DOUBLE_EXP_SMOOTHING_SKETCH, HOLT_WINTERS, HOLT_WINTERS_SKETCH
}
 
typedef std::unique_ptr
< AnomalyDetectorIface
PDetector
 
- Public Types inherited from Akumuli::QP::Node
enum  QueryFlags { EMPTY = 0, GROUP_BY_REQUIRED = 1, TERMINAL = 2 }
 

Public Member Functions

 AnomalyDetector (uint32_t nhashes, uint32_t bits, double threshold, double alpha, double beta, double gamma, int period, FcastMethod method, std::shared_ptr< Node > next)
 
 AnomalyDetector (boost::property_tree::ptree const &ptree, std::shared_ptr< Node > next)
 
virtual void complete ()
 Complete adding values.
 
virtual bool put (const aku_Sample &sample)
 
virtual void set_error (aku_Status status)
 
virtual int get_requirements () const
 

Public Attributes

std::shared_ptr< Nodenext_
 
PDetector detector_
 

Member Function Documentation

int Akumuli::QP::AnomalyDetector::get_requirements ( ) const
virtual

This method returns set of flags that describes its functioning.

Implements Akumuli::QP::Node.

bool Akumuli::QP::AnomalyDetector::put ( const aku_Sample &  sample)
virtual

Process value, return false to interrupt process. Empty sample can be sent to flush all updates.

Implements Akumuli::QP::Node.


The documentation for this struct was generated from the following files: