eis/eqpalg/.do_not_use/data_handler/base.h

39 lines
785 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
/**
* @file base.h
* @brief 基类
* @author Cat (null.null.null@qq.com)
* @version 0.1
* @date 2021-08-24
*
* Copyright: Baosight Co. Ltd.
* DO NOT COPY/USE WITHOUT PERMISSION
*
* DO NOT MODIFY!
*
*/
#include <string>
#include <eqpalg/define/sample.h>
namespace data_handler {
namespace policy {
struct Base {
protected:
const std::string rule_id_; ///< 规则id从上一层获得
const size_t dims_; ///< 样本维度
static constexpr size_t k_sampling_size_max = 10000; ///< 最大存储数据量
size_t sampling_size_; ///< 实际取样的数据量
public:
Base(const std::string& rule_id, size_t dims)
: rule_id_(rule_id), dims_(dims){};
virtual ~Base() = default;
};
} // namespace policy
} // namespace data_handler