eis/eqpalg/.do_not_use/otheralg/exp_sample1D.cc

24 lines
759 B
C++
Raw Normal View History

#include <eqpalg/algs/exp_sample1D.h>
int ExpSample1D::init() {
int ret = 0;
ret += ExpBase::init();
ret += reload_param();
}
int ExpSample1D::reload_param() {
try {
if (rule_json_.at("function").at("result").contains("param")) {
judge_diff_ = std::stod(rule_json_.at("function")
.at("result")
.at("param")
.at("threhold")
.at("value")
.get<std::string>());
}
} catch (const std::exception& e) {
logger_->Error() << e.what() << endl;
this->error_code_list_.push_back(
{ErrorType::Empty, ErrorLocation::ResultParam});
return -1;
}
return 0;
}