17 #include "SQLamarr/BasePlugin.h"
52 const std::string& library,
54 const std::string& function_name,
56 const std::string& select_query,
60 const std::string& output_table,
62 const std::vector<std::string> outputs,
66 unsigned int n_random,
69 const std::vector<std::string> reference_keys = {
"ref_id"}
72 :
BasePlugin(db, library, function_name, select_query,
73 output_table, outputs, reference_keys)
74 , m_func(load_func<genfunc>(function_name))
75 , m_n_random (n_random)
81 void eval_parametrization (
float* output,
const float* input)
override;
84 typedef float *(*genfunc)(
float *,
const float*,
const float*);
87 unsigned int m_n_random;
Interface to dynamically linked parametrizations.
BasePlugin(SQLite3DB &db, const std::string &library, const std::string &function_name, const std::string &select_query, const std::string &output_table, const std::vector< std::string > outputs, const std::vector< std::string > reference_keys={"ref_id"})
Constructor.
Wrapper to a compiled parametrization taking conditions and noise as input.
GenerativePlugin(SQLite3DB &db, const std::string &library, const std::string &function_name, const std::string &select_query, const std::string &output_table, const std::vector< std::string > outputs, unsigned int n_random, const std::vector< std::string > reference_keys={"ref_id"})
Constructor.
A database connection handler easying sharing the DB between C++ and Python.