| 6765 | |
| 6766 | template <typename Iterator> |
| 6767 | double mean(Iterator first, Iterator last) { |
| 6768 | auto count = last - first; |
| 6769 | double sum = std::accumulate(first, last, 0.); |
| 6770 | return sum / count; |
| 6771 | } |
| 6772 | |
| 6773 | template <typename URng, typename Iterator, typename Estimator> |
| 6774 | sample resample(URng& rng, int resamples, Iterator first, Iterator last, Estimator& estimator) { |
no test coverage detected