eis/eqpalg/algs/trend_slope2.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

55 lines
1.1 KiB
C++

/**
* @file trend_slope.h
* @brief 趋势检测(斜率)
* @author Cat (null.null.null@qq.com)
* @version 0.1
* @date 2021-09-13
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
*/
#pragma once
#include <eqpalg/alg_base.h>
#include <eqpalg/define/public.h>
#include <string>
#include <vector>
class TrendSlope2 : public AlgBase {
public:
TrendSlope2(const string name, const mix_cc::json &rule_json,
const string ruleId);
~TrendSlope2() override;
public:
int init() override;
/**
* @brief 执行函数
* @return AlarmInfo
*/
AlarmInfo exec_mon() override;
/**
* @brief 单次执行
* @param time_range My Param doc
* @return std::vector<AlarmInfo>
*/
std::vector<AlarmInfo> exec_task(mix_cc::time_range_t time_range) override;
/**
* @brief 前提条件--指定数据
* @return true
* @return false
*/
bool get_prr2();
private:
TimeDur limit_time_interval_;
TimeDur deltaX_;
double limit_slope_;
std::string error_content_;
int CS_AVG_SIZE_;
int need_tag_seq_ = 0;
};