eis/eqpalg/.do_not_use/otheralg/exp_sample1D.h

49 lines
1.2 KiB
C
Raw Normal View History

#pragma once
/**
* @file exp_sample1D.h
* @brief
* @author your name (you@domain.com)
* @version 0.1
* @date 2024-02-19
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
*/
#include <eqpalg/algs/exp_base.h>
#include <eqpalg/stat_tools/frame.h>
class ExpSample1D : public ExpBase {
public:
ExpSample1D(const string& name, const mix_cc::json& rule_json,
const string& ruleId, size_t exp_type);
~ExpSample1D() override;
virtual int init() override;
/**
* @brief
* @return AlarmInfo
*/
virtual AlarmInfo mon_proc() 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 mix_cc::json
*/
mix_cc::json exec_cron() override;
protected:
int reload_param();
protected:
double judge_diff_; ///< 评判的数据差值
std::unique_ptr<stat_tools::Frame> sample_stat_; ///< 样本统计
};