double MainWindow:: get_mean(QVector<double> in)
{
double sum = std::accumulate(in.begin(), in.end(), 0.0);
double mean = sum / in.size(); //均值
return mean;
}
double MainWindow:: get_mean(QVector<double> in)
{
double sum = std::accumulate(in.begin(), in.end(), 0.0);
double mean = sum / in.size(); //均值
return mean;
}