| 6989 | |
| 6990 | template <typename Iterator> |
| 6991 | double mean(Iterator first, Iterator last) { |
| 6992 | auto count = last - first; |
| 6993 | double sum = std::accumulate(first, last, 0.); |
| 6994 | return sum / count; |
| 6995 | } |
| 6996 | |
| 6997 | template <typename URng, typename Iterator, typename Estimator> |
| 6998 | sample resample(URng& rng, int resamples, Iterator first, Iterator last, Estimator& estimator) { |
no outgoing calls
no test coverage detected