Tomato
OxModelT1ThreeParam.h
Go to the documentation of this file.
1 
7 #ifndef Tomato_OXModelT1ThreeParam_H
8 #define Tomato_OXModelT1ThreeParam_H
9 
10 #include "tomatolib_export.h"
11 #include "OxModel.h"
12 #include <cmath>
13 
14 namespace Ox {
15 
22  template< typename MeasureType >
23  class ModelT1ThreeParam : public Model<MeasureType>{
24 
25  public:
26 
27  virtual MeasureType calcModelValue(const MeasureType* parameters, MeasureType time);
28  virtual void calcLSResiduals(const MeasureType* parameters, MeasureType* residuals);
29  virtual void calcLSJacobian(const MeasureType* parameters, MeasureType* jacobian);
30  virtual MeasureType calcCostValue(const MeasureType* parameters );
31  virtual void calcCostDerivative(const MeasureType* parameters, MeasureType* derivative);
32 
34  this->_nDims = 3;
35  }
36 
42 
47  virtual ~ModelT1ThreeParam(){};
48  };
49 } //namespace Ox
50 
51 #ifndef TOMATOLIB_COMPILED
52 #include "OxModelT1ThreeParam.hxx"
53 #endif //TOMATOLIB_COMPILED
54 
55 #endif //Tomato_OXModelT1ThreeParam_H
virtual void calcLSResiduals(const MeasureType *parameters, MeasureType *residuals)
Definition: OxModelT1ThreeParam.hxx:30
virtual void calcCostDerivative(const MeasureType *parameters, MeasureType *derivative)
Definition: OxModelT1ThreeParam.hxx:88
Container for a model function, cost function and Least-Squares function. And derivatives.
Definition: OxModel.h:26
virtual ~ModelT1ThreeParam()
do not forget about the virtual destructor, see https://stackoverflow.com/questions/461203/when-to-us...
Definition: OxModelT1ThreeParam.h:47
virtual MeasureType calcModelValue(const MeasureType *parameters, MeasureType time)
Definition: OxModelT1ThreeParam.hxx:16
Container for a ThreeParam model function , cost function and Least-Squares function and derivatives...
Definition: OxModelT1ThreeParam.h:23
virtual MeasureType calcCostValue(const MeasureType *parameters)
Definition: OxModelT1ThreeParam.hxx:71
virtual void calcLSJacobian(const MeasureType *parameters, MeasureType *jacobian)
Definition: OxModelT1ThreeParam.hxx:49
Definition: OxCalculator.h:19
virtual Model< MeasureType > * newByCloning()
Definition: OxModelT1ThreeParam.h:41