1 #ifndef cetlib_simple_stats_h 2 #define cetlib_simple_stats_h 17 template <
class charT,
class traits>
19 std::basic_ostream<charT, traits>&,
66 double mean()
const noexcept;
67 double range()
const noexcept;
68 double err_mean(std::size_t nparams = 1u)
const noexcept;
69 double rms(std::size_t nparams = 1u)
const noexcept;
70 double rms0(std::size_t nparams = 0u)
const noexcept;
71 double err_rms(std::size_t nparams = 1u)
const noexcept;
74 void reset() noexcept;
75 void sample(
double) noexcept;
93 template <
class charT,
class traits>
94 std::basic_ostream<charT, traits>&
95 cet::operator<<(std::basic_ostream<charT, traits>& os,
98 return os <<
"( " << stats.
size() <<
", " << stats.mean() <<
" +/- " 99 << stats.err_mean() <<
", " << stats.rms() <<
" +/- " 100 << stats.err_rms() <<
", " << stats.min() <<
" " << stats.max()
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
std::size_t size() const noexcept
double small() const noexcept
double mean() const noexcept
std::ostream & operator<<(std::ostream &, map_vector_key const &)
double err_mean(std::size_t nparams=1u) const noexcept
void sample(double) noexcept
double rms0(std::size_t nparams=0u) const noexcept
double min() const noexcept
void sample(Iter begin, Iter end) noexcept
double max() const noexcept
double sum() const noexcept
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
double sumsq() const noexcept
double rms(std::size_t nparams=1u) const noexcept
double range() const noexcept
double err_rms(std::size_t nparams=1u) const noexcept