| 865 | } |
| 866 | |
| 867 | static double common_average(const std::vector<double>& v) |
| 868 | { |
| 869 | std::size_t n = v.size() / 4; |
| 870 | double total = std::accumulate(v.begin() + n, v.end() - n, 0.0); |
| 871 | return total / std::distance(v.begin() + n, v.end() - n); |
| 872 | } |
| 873 | |
| 874 | static double mean(const std::vector<double>& v) |
| 875 | { |
no test coverage detected