Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Public Attributes | List of all members
Akumuli::QP::AnomalyDetectorPipeline< Frame, FMethod > Struct Template Reference
Inheritance diagram for Akumuli::QP::AnomalyDetectorPipeline< Frame, FMethod >:
Akumuli::QP::AnomalyDetectorIface

Public Types

typedef FMethod< Frame > FcastMethod
 
typedef std::unique_ptr< Frame > PFrame
 
typedef std::unique_ptr
< FcastMethod > 
PSlidingWindow
 

Public Member Functions

 AnomalyDetectorPipeline (uint32_t N, uint32_t K, double threshold, PSlidingWindow swindow)
 
void add (uint64_t id, double value)
 
bool is_anomaly_candidate (uint64_t id) const
 Returns true if series is anomalous (approx)
 
void move_sliding_window ()
 
PFrame calculate_error (const PFrame &forecast, const PFrame &actual)
 

Public Attributes

HashFnFamily hashes_
 
const uint32_t N
 
const uint32_t K
 
PFrame current_
 
PFrame error_
 
double F2_
 
double threshold_
 
PSlidingWindow sliding_window_
 

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