// // Created by baiguwen on 2022/4/23. // #include #include "periodic_interference.h" #include #include #include #include int main() { periodic_interference algorithm; algorithm.set_config( { {"PERIODIC_INTERFERENCE_AMPLITUDE", 20}, {"PERIODIC_INTERFERENCE_AMPLITUDE_BASE", 1}, {"CYCLE_", 20} } ); std::vector > user_arr; std::ifstream fp("C:/data/user_data.csv"); std::string line; getline(fp,line); while (getline(fp,line)){ std::vector data_line; std::string number; std::istringstream readstr(line); for(int j = 0;j < 2814;j++){ getline(readstr,number,','); data_line.push_back(atof(number.c_str())); } user_arr.push_back(data_line); } std::ofstream outfile; outfile.open("C:/data/user_data5.csv", std::ios::out); outfile<<"origin"<<','<<"periodic_interference"<