RAIDA  1.9.0
IModelFunctionROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_IMODELFUNCTIONROOT_H
3 #define AIDA_IMODELFUNCTIONROOT_H 1
4 
5 #include <vector>
6 
7 #include <RAIDA/IFunctionROOT.h>
8 #include <AIDA/IModelFunction.h>
9 
10 namespace AIDA {
11 
12 class IRangeSet;
13 
34 class IModelFunctionROOT : public IFunctionROOT, virtual public IModelFunction {
35 
36 public:
38  virtual ~IModelFunctionROOT() { /* nop */; }
39 
40  IModelFunctionROOT() { /* nop */; }
41 
43  virtual bool providesNormalization() const ;
44 
50  virtual void normalize(bool on) ;
51 
55  virtual bool isNormalized() const ;
56 
60  virtual const std::vector<double> & parameterGradient(const std::vector<double> & x) const ;
61 
65  virtual bool providesParameterGradient() const ;
66 
77  virtual IRangeSet & normalizationRange(int iAxis) ;
78 
82  virtual void includeNormalizationAll() ;
83 
87  virtual void excludeNormalizationAll() ;
88 }; // class
89 } // namespace AIDA
90 #endif /* ifndef AIDA_IMODELFUNCTIONROOT_H */
virtual ~IModelFunctionROOT()
Destructor.
Definition: IModelFunctionROOT.h:38
virtual const std::vector< double > & parameterGradient(const std::vector< double > &x) const
Compute gradient with respect to parameters.
Definition: IModelFunctionROOT.cc:28
Definition: IFunctionROOT.h:26
virtual void includeNormalizationAll()
Set full range in all axes.
Definition: IModelFunctionROOT.cc:46
virtual void normalize(bool on)
Normalize by internally adjusting some of the parameters.
Definition: IModelFunctionROOT.cc:17
virtual bool providesNormalization() const
Return false if function does not provide the normalization capability.
Definition: IModelFunctionROOT.cc:11
virtual void excludeNormalizationAll()
Set empty range in all axes.
Definition: IModelFunctionROOT.cc:51
Definition: IModelFunctionROOT.h:34
Interface of model function for fitting (for advanced users).
Definition: IModelFunction.h:43
virtual IRangeSet & normalizationRange(int iAxis)
Set the normalization range from -inf to +inf in the i-th axis (dimension).
Definition: IModelFunctionROOT.cc:40
virtual bool providesParameterGradient() const
Return true if provides parameter gradient.
Definition: IModelFunctionROOT.cc:34
virtual bool isNormalized() const
Return true if normalization is currently switched on.
Definition: IModelFunctionROOT.cc:22