7 namespace FunctionTree {
11 : Tree(Tree_), Parameters(Parameters_), Data(Data_) {
28 const std::vector<double> ¶ms) {
31 p->setValue(params[pos]);
37 std::vector<ComPWA::Parameter> params;
44 std::tuple<std::shared_ptr<ComPWA::FunctionTree::TreeNode>,
52 return Tree->print(level);
59 ss <<
"FunctionTreeIntensity::updateDataContainers(): given data " 60 "container does not have enough variables! (required: " 61 << Data.
mDoubleValues().size() <<
", given: " << data.size() <<
")";
62 throw std::out_of_range(ss.str());
Template implementation of Parameter for simple values.
FunctionTreeIntensity(std::shared_ptr< TreeNode > Tree_, ParameterList Parameters_, ParameterList Data_)
void updateParametersFrom(const std::vector< double > ¶ms)
It is important to input the vector in the same length and order as defined in the getParameters() me...
std::vector< double > evaluate(const ComPWA::DataMap &data) noexcept
std::tuple< std::shared_ptr< ComPWA::FunctionTree::TreeNode >, ComPWA::FunctionTree::ParameterList > bind(const ComPWA::DataMap &data)
virtual std::vector< std::shared_ptr< Value< std::vector< double > > > > & mDoubleValues()
std::vector< ComPWA::Parameter > getParameters() const
void updateDataContainers(ParameterList Data, const ComPWA::DataMap &data)
std::string print(int level) const
std::unordered_map< std::string, std::vector< double > > DataMap
std::shared_ptr< TreeNode > Tree
void updateDataContainers(const ComPWA::DataMap &data)
virtual std::vector< std::shared_ptr< FitParameter > > & doubleParameters()
This class provides a list of parameters and values of different types.
virtual std::shared_ptr< Value< std::vector< double > > > mDoubleValue(size_t i) const