摘要: double getAverage(const std::vector<double>& data) { double avg = 0; for (size_t i = 0; i < data.size(); ++i) { avg = avg + (data[i] - avg) /(i + 1.0) 阅读全文
posted @ 2024-07-12 14:03 快雪 阅读(19) 评论(0) 推荐(0) 编辑