SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
EngineValueResidual.h
Go to the documentation of this file.
1
23#ifndef MODELFITTING_ENGINEVALUERESIDUAL_H
24#define MODELFITTING_ENGINEVALUERESIDUAL_H
25
28
29namespace ModelFitting {
30
47
48public:
49
66 EngineValueResidual(EngineParameter& parameter, double expected_value, double weight=1.);
67
70
72 std::size_t numberOfResiduals() const override;
73
76 void populateResidualBlock(IterType output_iter) override;
77
78private:
79
80 double m_residual;
81
82}; // end of class EngineValueResidual
83
84} // end of namespace ModelFitting
85
86#endif /* MODELFITTING_ENGINEVALUERESIDUAL_H */
87
EngineParameter are those derived from the minimization process.
ResidualBlockProvider implementation for adding a prior to a parameter engine value.
std::size_t numberOfResiduals() const override
Always returns 1, as this class creates a single residual.
virtual ~EngineValueResidual()
Destructor.
void populateResidualBlock(IterType output_iter) override
EngineValueResidual(EngineParameter &parameter, double expected_value, double weight=1.)
Constructs a new instance of EngineValueResidual.
Interface of a class which can provide a block of residuals for least square minimization solving.