#include "cetlib/sqlite/Connection.h"
#include "cetlib/sqlite/ConnectionFactory.h"
#include "cetlib/sqlite/Ntuple.h"
#include "cetlib/sqlite/statistics.h"
#include <array>
#include <cassert>
#include <memory>
#include <string>
Go to the source code of this file.
Definition at line 15 of file statistics_t.cc.
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
static int max(int a, int b)
T min(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)
Definition at line 44 of file statistics_t.cc.
51 *
c, table_name, {{
"Name",
"Age",
"Experience"}}};
53 workers.insert(
"Benny", 48, 10);
54 workers.insert(
"Cassie", 52, 27);
55 workers.insert(
"David", 65, 14);
56 workers.insert(
"Emily", 38, 19);
58 test_statistics_quantities(
59 *
c, table_name,
"Age", {{27, 65, 46, 48, 12 }});
60 test_statistics_quantities(
61 *
c, table_name,
"Experience", {{5, 27, 15, 14, 7 }});
auto make_connection(std::string const &file_name, PolicyArgs &&...) -> Connection *