SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
FlexibleModelFittingPrior.h
Go to the documentation of this file.
1
17/*
18 * FlexibleModelFittingPrior.h
19 *
20 * Created on: 2018 M11 16
21 * Author: mschefer
22 */
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_FLEXIBLEMODELFITTING_FLEXIBLEMODELFITTINGPRIOR_H_
25#define _SEIMPLEMENTATION_PLUGIN_FLEXIBLEMODELFITTING_FLEXIBLEMODELFITTINGPRIOR_H_
26
27#include <functional>
28
30
31namespace ModelFitting {
32 class ResidualEstimator;
33}
34
35namespace SourceXtractor {
36
38public:
39 using ValueFunc = std::function<double(const SourceInterface&)>;
40
42 ValueFunc expected_value, ValueFunc standard_deviation)
43 : m_parameter(parameter), m_expected_value(expected_value), m_standard_deviation(standard_deviation) {}
44
46
47 void setupPrior(
48 FlexibleModelFittingParameterManager& parameter_manager, const SourceInterface& source,
49 ModelFitting::ResidualEstimator& residual_estimator) const;
50
51private:
55};
56
57}
58
59
60#endif /* _SEIMPLEMENTATION_PLUGIN_FLEXIBLEMODELFITTING_FLEXIBLEMODELFITTINGPRIOR_H_ */
Provides to the LeastSquareEngine the residual values.
FlexibleModelFittingPrior(std::shared_ptr< FlexibleModelFittingParameter > parameter, ValueFunc expected_value, ValueFunc standard_deviation)
std::shared_ptr< FlexibleModelFittingParameter > m_parameter
void setupPrior(FlexibleModelFittingParameterManager &parameter_manager, const SourceInterface &source, ModelFitting::ResidualEstimator &residual_estimator) const
The SourceInterface is an abstract "source" that has properties attached to it.