Tomato
OxModelT1Shmolli.h
Go to the documentation of this file.
1 
7 #ifndef Tomato_OXModelT1Shmolli_H
8 #define Tomato_OXModelT1Shmolli_H
9 
10 #include "tomatolib_export.h"
11 #include "OxModel.h"
12 #include <cmath>
13 
14 namespace Ox {
15 
23  template< typename MeasureType >
24  class ModelT1Shmolli : public Model<MeasureType>{
25 
26  public:
27 
28  bool _expAbsCost;
29  bool _preventUnderOverFlow;
30  bool _costHeuristic;
31  bool _rootMedianSquareCost;
32 
33  virtual MeasureType calcModelValue(const MeasureType* parameters, MeasureType time);
34  virtual void calcLSResiduals(const MeasureType* parameters, MeasureType* residuals);
35  virtual void calcLSJacobian(const MeasureType* parameters, MeasureType* jacobian);
36  virtual MeasureType calcCostValue(const MeasureType* parameters );
37  virtual void calcCostDerivative(const MeasureType* parameters, MeasureType* derivative);
38 
40  _expAbsCost = true;
41  _preventUnderOverFlow = true;
42  _costHeuristic = true;
43  _rootMedianSquareCost = false;
44 
45  this->_nDims = 3;
46  }
47 
53 
58  virtual ~ModelT1Shmolli(){};
59  };
60 } //namespace Ox
61 
62 #ifndef TOMATOLIB_COMPILED
63 #include "OxModelT1Shmolli.hxx"
64 #endif //TOMATOLIB_COMPILED
65 
66 #endif //Tomato_OXModelT1Shmolli_H
virtual Model< MeasureType > * newByCloning()
Definition: OxModelT1Shmolli.h:52
virtual MeasureType calcModelValue(const MeasureType *parameters, MeasureType time)
Definition: OxModelT1Shmolli.hxx:16
Container for a model function, cost function and Least-Squares function. And derivatives.
Definition: OxModel.h:26
virtual void calcLSResiduals(const MeasureType *parameters, MeasureType *residuals)
Definition: OxModelT1Shmolli.hxx:52
Container for a CalculatorShmolli model function , cost function and Least-Squares function and deriv...
Definition: OxModelT1Shmolli.h:24
virtual ~ModelT1Shmolli()
do not forget about the virtual destructor, see https://stackoverflow.com/questions/461203/when-to-us...
Definition: OxModelT1Shmolli.h:58
virtual MeasureType calcCostValue(const MeasureType *parameters)
Definition: OxModelT1Shmolli.hxx:97
virtual void calcLSJacobian(const MeasureType *parameters, MeasureType *jacobian)
Definition: OxModelT1Shmolli.hxx:75
Definition: OxCalculator.h:19
virtual void calcCostDerivative(const MeasureType *parameters, MeasureType *derivative)
Definition: OxModelT1Shmolli.hxx:142