From e3207fa59389586b012c314b3a0fb553dcf72fc0 Mon Sep 17 00:00:00 2001 From: Huamonarch Date: Sat, 9 May 2026 13:30:42 +0800 Subject: [PATCH] Remove remaining irrelevant comments from eqpalg (glitch_detection, roller, STA) --- eqpalg/algs/glitch_detection.cpp | 1 - eqpalg/algs/roller.cpp | 1 - eqpalg/feature_extraction/STA.cc | 12 ++++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/eqpalg/algs/glitch_detection.cpp b/eqpalg/algs/glitch_detection.cpp index 1ec2752..3546f82 100644 --- a/eqpalg/algs/glitch_detection.cpp +++ b/eqpalg/algs/glitch_detection.cpp @@ -153,7 +153,6 @@ bool GlitchDetection::get_prr() { << ",rulename:" << this->rule_name_ << ",get_prr():" << prr_result << ",data_index_:" << data_index_ << std::endl; - // exp_mpdule_ptr_->print_value(); } return prr_result; } diff --git a/eqpalg/algs/roller.cpp b/eqpalg/algs/roller.cpp index 750860d..d0b2517 100644 --- a/eqpalg/algs/roller.cpp +++ b/eqpalg/algs/roller.cpp @@ -9,7 +9,6 @@ #include #include #include "mix_cc/ihyper_db.h" -// 炉辊组算法无需额外的算法初始化步骤 int Roller::init() { int res = 0; try { diff --git a/eqpalg/feature_extraction/STA.cc b/eqpalg/feature_extraction/STA.cc index 58aa3ba..b542f3c 100644 --- a/eqpalg/feature_extraction/STA.cc +++ b/eqpalg/feature_extraction/STA.cc @@ -436,8 +436,8 @@ bool STA::reset_data(double range, double init_value) { is_need_ = true; is_init_ = true; is_task_ = true; - this->range_ = range; ///<间距 - this->init_value_ = init_value; ///< a0,an = a0 + n*range_ + this->range_ = range; + this->init_value_ = init_value; this->dist_data_.clear(); this->sample_1d_data_.clear(); logger_->Info() << "STA::reset_data,range:" << range @@ -457,22 +457,22 @@ int STA::task_update_ci_dist() { double dump_size = this->running_stat_.current_n(); if (dump_size > 3) { this->scale_ = (double)this->k_dest_dump_size / dump_size; - vector data_value; ///<解压缩后的数据 + vector data_value; for (auto item : this->sample_1d_data_) { int count_now = std::ceil( - scale_ * item.Count); //根据该条记录的频次 得到解压到数据个数 + scale_ * item.Count); for (int i = 0; i < count_now; i++) { data_value.push_back(RandMinMax(item.X1 - range_, item.X1 + range_)); } } - std::sort(data_value.begin(), data_value.end()); ///< 从小到大排序 + std::sort(data_value.begin(), data_value.end()); logger_->Debug() << "解压缩数据量:" << data_value.size() << ",data[0]" << data_value[0] << ",data[-1]" << *data_value.rbegin() << endl; this->dist_1d_.auto_test(this->running_stat_, data_value); if (this->dist_1d_.valid()) { dist_range_ci_ = this->dist_1d_.get_range(); - res += this->update_t_sample_mag(); ///< 更新 T_SAMPLE_MAG + res += this->update_t_sample_mag(); } else { logger_->Debug() << "区间不合法!" << endl; res = -1;