Auxiliary Arithmetic Algorithms
Main Page
Modules
Classes
Files
File List
statistics.hpp
1
#pragma once
2
3
#include "misc_algorithms.hpp"
4
#include "traits.hpp"
5
9
template
<
typename
Container>
10
sqrt_value_type<Container> mean(
const
Container& a)
11
{
12
return
static_cast<
sqrt_value_type<Container>
>
(
sum
(a) /
static_cast<
double
>
);
13
}
aaa::sum
T sum(InputIterator first, InputIterator last, T init=T{})
Definition:
misc_algorithms.hpp:44
statistics.hpp
Generated by
1.8.11