1 #ifndef CORE_FUNCTION_HPP_ 2 #define CORE_FUNCTION_HPP_ 5 #include <unordered_map> 15 using DataMap = std::unordered_map<std::string, std::vector<double>>;
24 template <
typename OutputType,
typename... InputTypes>
class Function {
28 virtual OutputType evaluate(
const InputTypes &... args) noexcept = 0;
34 virtual void updateParametersFrom(
const std::vector<double> &) = 0;
35 virtual std::vector<Parameter> getParameters()
const = 0;
std::unordered_map< std::string, std::vector< double > > DataMap
Interface template for a general Function of the form OutputType Function(InputTypes) The concept clo...