eis/eqpalg/algs/glitch_detection.h
Huamonarch 224c2c45c4 Remove irrelevant comments from eqpalg source files
Cleaned 66 files across all eqpalg subdirectories:
- Removed commented-out dead code
- Removed redundant Chinese inline comments that restate variable/function names
- Removed trailing ///< annotations on self-explanatory fields
- Removed namespace closing comments
- Preserved all file headers, Doxygen documentation, and logic explanations
- No code changes — only comment removal
2026-05-09 13:30:09 +08:00

40 lines
931 B
C++

#pragma once
#include <array>
#include <eqpalg/alg_base.h>
#include <eqpalg/define/public.h>
#include <eqpalg/utility/proxy_py.h>
#include <map>
const int MAXLEN = ProxPyMapConfig::dataMaxLen;
using std::string;
class GlitchDetection : public AlgBase {
public:
GlitchDetection(const string name, const mix_cc::json &rule_json,
const string ruleId);
virtual ~GlitchDetection();
public:
int init() override;
AlarmInfo exec_mon() override;
std::vector<AlarmInfo> exec_task(mix_cc::time_range_t time_range) override;
void save_rule_norm_data() override;
bool get_prr() override;
private:
std::array<double, MAXLEN> data_;
int data_index_ = 0;
int data_size_ = 0;
double glitch_per_ = 0.1;
mix_cc::time_range_t run_time_range_;
string exp_str_;
mix_cc::json py_param_;
std::string error_content_;
private:
/**
* @brief 加载表达式
* @return int
*/
int load_exp();
};