2 #ifndef AIDA_IFUNCTIONROOT_H
3 #define AIDA_IFUNCTIONROOT_H 1
5 #include <AIDA/IFunction.h>
39 virtual std::string
title()
const ;
52 virtual double value(
const std::vector<double> & x)
const ;
63 virtual bool isEqual(
const IFunction & f)
const ;
70 virtual const std::vector<double> &
gradient(
const std::vector<double> & x)
const ;
90 virtual bool setParameters(
const std::vector<double> & params) ;
95 virtual const std::vector<double> &
parameters()
const ;
118 virtual bool setParameter(
const std::string & name,
double x) ;
120 virtual double parameter(
const std::string & name)
const ;
128 virtual IAnnotation & annotation() ;
130 virtual const IAnnotation & annotation()
const ;
178 virtual void *
cast(
const std::string & className)
const ;
Principal user-level function interface.
Definition: IFunction.h:35
virtual std::string variableName(int i) const
Get the symbolic name of i-th variable.
Definition: IFunctionROOT.cc:51
virtual ~IFunctionROOT()
Destructor.
Definition: IFunctionROOT.h:30
virtual const std::vector< double > & parameters() const
Retrieve current vector of parameters.
Definition: IFunctionROOT.cc:70
Definition: IFunctionROOT.h:26
virtual int numberOfParameters() const
Number of parameters.
Definition: IFunctionROOT.cc:76
virtual const std::vector< double > & gradient(const std::vector< double > &x) const
Gradient of the function.
Definition: IFunctionROOT.cc:39
virtual std::vector< std::string > variableNames() const
Get all the names in a vector.
Definition: IFunctionROOT.cc:57
virtual std::vector< std::string > parameterNames() const
Names of paramaters.
Definition: IFunctionROOT.cc:82
virtual bool setParameter(const std::string &name, double x)
Set parameter's value by name.
Definition: IFunctionROOT.cc:89
virtual bool isEqual(const IFunction &f) const
Compare if functions are the same.
Definition: IFunctionROOT.cc:33
virtual std::string codeletString() const
String describing the metatype and implementation of the function.
Definition: IFunctionROOT.cc:121
virtual void * cast(const std::string &className) const
See IManagedObject for a description.
Definition: IFunctionROOT.cc:127
virtual double value(const std::vector< double > &x) const
Scalar value of the function.
Definition: IFunctionROOT.cc:21
virtual bool setParameters(const std::vector< double > ¶ms)
Set new vector of parameters.
Definition: IFunctionROOT.cc:64
virtual std::string title() const
Get the Function's title.
Definition: IFunctionROOT.cc:9
virtual int dimension() const
Dimensionality of the domain space.
Definition: IFunctionROOT.cc:27
virtual bool setTitle(const std::string &title)
Set the histogram title.
Definition: IFunctionROOT.cc:15
virtual int indexOfParameter(const std::string &name) const
Return -1 if parameter not found (name undefined).
Definition: IFunctionROOT.cc:101
virtual bool providesGradient() const
Determine whether function is able to compute gradient.
Definition: IFunctionROOT.cc:45