1 #ifndef cetlib_sqlite_statistics_h 2 #define cetlib_sqlite_statistics_h 28 template <
typename T =
double>
33 template <
typename T =
double>
60 r <<
select(
"min(" + column_name +
")").from(db, table_name);
71 r <<
select(
"max(" + column_name +
")").from(db, table_name);
T unique_value(query_result< T > const &r)
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
auto select(T const &...t)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
T max(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
double median(sqlite3 *db, std::string const &table_name, std::string const &column_name)