1 #ifndef CommonTools_Utils_FormulaEvaluator_h 2 #define CommonTools_Utils_FormulaEvaluator_h 74 template<
typename V,
typename P>
75 double evaluate( V
const& iVariables,
P const& iParameters)
const {
76 if (m_nVariables > iVariables.size()) {
77 throwWrongNumberOfVariables(iVariables.size());
79 if (m_nParameters > iParameters.size()) {
80 throwWrongNumberOfParameters(iParameters.size());
89 std::vector<std::string> abstractSyntaxTree()
const;
92 double evaluate(
double const* iVariables,
double const* iParameters)
const;
94 void throwWrongNumberOfVariables(
size_t)
const ;
95 void throwWrongNumberOfParameters(
size_t)
const;
98 unsigned int m_nVariables = 0;
99 unsigned int m_nParameters = 0;
std::pair< OmniClusterRef, TrackingParticleRef > P