This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.
#include <IFunctionFactory.h>
Public Methods | |
virtual | ~IFunctionFactory () |
Destructor. More... | |
virtual IFunction* | createFunctionByName (const std::string &name, std::string model)=0 |
virtual IFunction* | createFunctionFromScript (const std::string &name, int dim, std::string valexpr, std::string parameters, std::string description, std::string gradexpr="")=0 |
virtual IFunction* | cloneFunction (const std::string &name, IFunction *f)=0 |
virtual IFunctionCatalog* | catalog ()=0 |
Definition at line 31 of file IFunctionFactory.h.
|
Definition at line 35 of file IFunctionFactory.h. |
|
get access to the function catalog |
|
|
|
Create function from a name registered in the catalog. This is the easiest way to create simple model functions for fitting. Every AIDA compliant implementation should predefine "G", "E", "Pn" (n is an integer, e.e "P0","P5"). Simple operations are permitted, e.g. "G+P2". |
|
Create function from script. Script conventions: example: createFunctionFromScript("f1", 2, "a*x[0]*x[0] + b*x[1]", "a,b", "this is my function", "2*a*x[0],b") |