SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EngineValueResidual.h
Go to the documentation of this file.
1 
23 #ifndef MODELFITTING_ENGINEVALUERESIDUAL_H
24 #define MODELFITTING_ENGINEVALUERESIDUAL_H
25 
28 
29 namespace ModelFitting {
30 
47 
48 public:
49 
66  EngineValueResidual(EngineParameter& parameter, double expected_value, double weight=1.);
67 
69  virtual ~EngineValueResidual();
70 
72  std::size_t numberOfResiduals() const override;
73 
76  void populateResidualBlock(IterType output_iter) override;
77 
78 private:
79 
80  double m_residual;
81 
82 }; // end of class EngineValueResidual
83 
84 } // end of namespace ModelFitting
85 
86 #endif /* MODELFITTING_ENGINEVALUERESIDUAL_H */
87 
ResidualBlockProvider implementation for adding a prior to a parameter engine value.
EngineParameter are those derived from the minimization process.
virtual ~EngineValueResidual()
Destructor.
void populateResidualBlock(IterType output_iter) override
std::size_t numberOfResiduals() const override
Always returns 1, as this class creates a single residual.
Interface of a class which can provide a block of residuals for least square minimization solving...
EngineValueResidual(EngineParameter &parameter, double expected_value, double weight=1.)
Constructs a new instance of EngineValueResidual.