#include <simple_stats.h>
|
| simple_stats () noexcept |
|
| simple_stats (double x) noexcept |
|
std::size_t | size () const noexcept |
|
double | max () const noexcept |
|
double | min () const noexcept |
|
double | small () const noexcept |
|
double | sum () const noexcept |
|
double | sumsq () const noexcept |
|
double | mean () const noexcept |
|
double | range () const noexcept |
|
double | err_mean (std::size_t nparams=1u) const noexcept |
|
double | rms (std::size_t nparams=1u) const noexcept |
|
double | rms0 (std::size_t nparams=0u) const noexcept |
|
double | err_rms (std::size_t nparams=1u) const noexcept |
|
void | reset () noexcept |
|
void | sample (double) noexcept |
|
template<class Iter > |
void | sample (Iter begin, Iter end) noexcept |
|
Definition at line 25 of file simple_stats.h.
simple_stats::simple_stats |
( |
| ) |
|
|
noexcept |
Definition at line 20 of file simple_stats.cc.
22 ,
min_(+std::numeric_limits<double>::infinity())
23 ,
max_(-std::numeric_limits<double>::infinity())
24 ,
small_(+std::numeric_limits<double>::infinity())
simple_stats::simple_stats |
( |
double |
x | ) |
|
|
noexcept |
Definition at line 31 of file simple_stats.cc.
33 ,
min_(+std::numeric_limits<double>::infinity())
34 ,
max_(-std::numeric_limits<double>::infinity())
35 ,
small_(+std::numeric_limits<double>::infinity())
void sample(double) noexcept
double simple_stats::err_mean |
( |
std::size_t |
nparams = 1u | ) |
const |
|
noexcept |
Definition at line 59 of file simple_stats.cc.
61 return n_ == 0u ? std::numeric_limits<double>::quiet_NaN() :
62 rms(nparams) /
std::sqrt(double(
n_));
double rms(std::size_t nparams=1u) const noexcept
double simple_stats::err_rms |
( |
std::size_t |
nparams = 1u | ) |
const |
|
noexcept |
Definition at line 94 of file simple_stats.cc.
96 return n_ == 0u ? std::numeric_limits<double>::quiet_NaN() :
97 rms(nparams) /
std::sqrt(double(2u *
n_));
double rms(std::size_t nparams=1u) const noexcept
double cet::simple_stats::max |
( |
| ) |
const |
|
inlinenoexcept |
double simple_stats::mean |
( |
| ) |
const |
|
noexcept |
Definition at line 46 of file simple_stats.cc.
48 return n_ == 0u ? std::numeric_limits<double>::quiet_NaN() :
double cet::simple_stats::min |
( |
| ) |
const |
|
inlinenoexcept |
double simple_stats::range |
( |
| ) |
const |
|
noexcept |
void simple_stats::reset |
( |
| ) |
|
|
noexcept |
double simple_stats::rms |
( |
std::size_t |
nparams = 1u | ) |
const |
|
noexcept |
Definition at line 66 of file simple_stats.cc.
69 return std::numeric_limits<double>::quiet_NaN();
75 double factor = double(
n_) / double(
n_ - nparams);
76 return std::sqrt(factor * diff);
double mean() const noexcept
double simple_stats::rms0 |
( |
std::size_t |
nparams = 0u | ) |
const |
|
noexcept |
Definition at line 80 of file simple_stats.cc.
83 return std::numeric_limits<double>::quiet_NaN();
89 double factor = double(
n_) / double(
n_ - nparams);
90 return std::sqrt(factor * diff);
void simple_stats::sample |
( |
double |
x | ) |
|
|
noexcept |
Definition at line 110 of file simple_stats.cc.
static int max(int a, int b)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
template<class Iter >
void cet::simple_stats::sample |
( |
Iter |
begin, |
|
|
Iter |
end |
|
) |
| |
|
inlinenoexcept |
Definition at line 78 of file simple_stats.h.
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
void sample(double) noexcept
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
std::size_t cet::simple_stats::size |
( |
| ) |
const |
|
inlinenoexcept |
double cet::simple_stats::small |
( |
| ) |
const |
|
inlinenoexcept |
double cet::simple_stats::sum |
( |
| ) |
const |
|
inlinenoexcept |
double cet::simple_stats::sumsq |
( |
| ) |
const |
|
inlinenoexcept |
double cet::simple_stats::max_ |
|
private |
double cet::simple_stats::min_ |
|
private |
std::size_t cet::simple_stats::n_ |
|
private |
double cet::simple_stats::small_ |
|
private |
double cet::simple_stats::sum_ |
|
private |
double cet::simple_stats::sumsq_ |
|
private |
The documentation for this class was generated from the following files: