20 simple_stats::simple_stats() noexcept
22 , min_(+
std::numeric_limits<
double>::infinity())
23 , max_(-
std::numeric_limits<
double>::infinity())
24 , small_(+
std::numeric_limits<
double>::infinity())
33 ,
min_(+std::numeric_limits<double>::infinity())
34 ,
max_(-std::numeric_limits<double>::infinity())
35 ,
small_(+std::numeric_limits<double>::infinity())
48 return n_ == 0u ? std::numeric_limits<double>::quiet_NaN() :
61 return n_ == 0u ? std::numeric_limits<double>::quiet_NaN() :
62 rms(nparams) / std::sqrt(
double(
n_));
69 return std::numeric_limits<double>::quiet_NaN();
75 double factor = double(
n_) / double(
n_ - nparams);
76 return std::sqrt(factor * diff);
83 return std::numeric_limits<double>::quiet_NaN();
89 double factor = double(
n_) / double(
n_ - nparams);
90 return std::sqrt(factor * diff);
96 return n_ == 0u ? std::numeric_limits<double>::quiet_NaN() :
97 rms(nparams) / std::sqrt(
double(2u *
n_));
double mean() const noexcept
double err_mean(std::size_t nparams=1u) const noexcept
void sample(double) noexcept
double rms0(std::size_t nparams=0u) const noexcept
static int max(int a, int b)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
double rms(std::size_t nparams=1u) const noexcept
double range() const noexcept
double err_rms(std::size_t nparams=1u) const noexcept